How to ignore 'comparison between signed and unsigned integer expressions'?

前端 未结 2 1746
礼貌的吻别
礼貌的吻别 2021-01-31 10:07

Can anybody please tell me which flag I have to use in order to make gcc ignore the \'comparison between signed and unsigned integer expressions\' warning message.

2条回答
  •  难免孤独
    2021-01-31 10:33

    Here's what worked for me, using the gcc compiler in Code::Blocks. In the compiler settings, click the "Compiler Settings" tab, then choose "Other Compiler Options. Type in -Wno-sign-compare The warning -Wsign-compare can be negated by adding "-Wno" as a prefix. In fact warnings can be ignored by adding -Wno- to the warning code.

提交回复
热议问题