Open dcb314 opened 2 years ago
clang compiler says:
1.
src-IL/src/il_states.c:1133:20: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Source code is
if (Param >= -1 || Param <= 255) {
2.
src-IL/src/il_states.c:1127:19: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
if (Param >= 0 || Param <= 2) {
Well, yes: those conditions are useless. I guess the expected operator was AND, not OR
clang compiler says:
1.
src-IL/src/il_states.c:1133:20: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
Source code is
if (Param >= -1 || Param <= 255) {
2.
src-IL/src/il_states.c:1127:19: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
if (Param >= 0 || Param <= 2) {