[Tuxpaint-devel] Is this warning harmless?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: TOYAMA Shin-i. <sh...@wm...> - 2021-10-31 13:06:11
|
Hi, Recently, I've been dealing with a lot of bugs in the Windows version, and I've noticed that many clue of the bugs had been appeared in the compile-time warnings. So,I checked the warnings again, and the following warning, which does not appear when compiling on Linux, caught my attention. ------------------------------------------------------------ src/tuxpaint.c: In function 'render_text_w': src/tuxpaint.c:1685:27: warning: comparison is always true due to limited range of data type [-Wtype-limits] 1685 | else if (str[i] <= 0x0000FFFF) ------------------------------------------------------------ If this warning is correct, it means that the next conditional branch (0x00100000 - 001FFFFF) will never be reached. How can I confirm if it were a problem or not? Thanks! -- TOYAMA Shin-ichi mailto:sh...@wm... |