clang 3.3. gives the following valid warning:
[CXX] ../soundlib/tuning.cpp
In file included from ../soundlib/tuning.cpp:13:
In file included from ../soundlib/tuning.h:13:
../soundlib/tuningbase.h:306:15: warning: comparison of constant -2147483648 with expression of type 'short' is always false [-Wtautological-constant-out-of-range-compare]
if(vrp.first == STEPINDEXTYPE_MIN && vrp.second == STEPINDEXTYPE_MAX) return true;
../soundlib/tuningbase.h:306:50: warning: comparison of constant 2147483647 with expression of type 'short' is always false [-Wtautological-constant-out-of-range-compare]
if(vrp.first == STEPINDEXTYPE_MIN && vrp.second == STEPINDEXTYPE_MAX) return true;
~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
2 warnings generated.
|