News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Possible issue with propgrid?

Started by MortenMacFly, January 13, 2006, 07:27:20 PM

Previous topic - Next topic

MortenMacFly

I don't know when this started bbut doing a C::B rebuild from scratch showed this warning as of today:

sdk\propgrid\src\propgrid\propgrid.cpp:6804: warning: comparison is always false due to limited range of data type

I wonder whether this is an issue that should be taken care of. Looking at the appropriate code leads me to think it might be an unicode issue, but I am not sure. I am using C::B revision 1749 on Windows with wxWidgets 2.6.2 (unicode).
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

killerbot

The warning is already present for some time.
In the comparison a cast to int should be done. In unicode wxChar is apparently unsigned, and int ansi it is not, so in ansi this test is needed.

Someone needs to add that cast, please (devs ???)