Closed Baron-von-Riedesel closed 7 months ago
Thanks for your problem report.
I checked compiler processing and it is reported for first condition port >= 0
which is always true.
if(( port >= 0x00 && port <= 0x07 ) || ( port >= 0xC0 && port <= 0xCE )) { // <---- warning about this line
The same is reported by OW 1.9 compiler. It looks like surprising message but it is correct.
Ah yes, I see. with a typecast to a signed short before 'port' I got rid of the warning. Thanks!
this simple test code always gives warning "comparison result always 1" ( version 02/2024 ):
cmd used to compile
The generated code is correct, though.