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 gcc 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?