8

warning: comparison is always false due to limited range of data type in gcc 4.1.2

view full story
linux-howto

http://stackoverflow.com – I encountered the following warning from gcc 4.1.2: warning: comparison is always false due to limited range of data type the concerned C code is like: if ( unlikely(count < 0) ) BUG(); where 'count' is unsigned. I tried to disable the warning since I was not allowed to modify the source code: -Wno-type-limits but it seems gdb 4.1.2 does not support it. cc1: error: unrecognized command line option "-Wno-type-limits" Any other ways to get rid of this warning? (HowTos)