Commander-Genius icon indicating copy to clipboard operation
Commander-Genius copied to clipboard

[Warnings] build unlzexe with clang++ 13 or 14

Open LowLevelMahn opened this issue 2 years ago • 0 comments

unlzexe.cpp:324:20: warning: result of comparison of constant 65536 with expression of type 'WORD' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]
    } while(rel_seg!=(0xf000+0x1000));
            ~~~~~~~^ ~~~~~~~~~~~~~~~

and the version print needs blanks before after the macro, to be C++11 conform

printf("UNLZEXE Ver. " VERSION "\n"); /* v0.6 */

LowLevelMahn avatar Jun 23 '22 17:06 LowLevelMahn