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

前端 未结 2 1793
礼貌的吻别
礼貌的吻别 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:40

    gcc -Wno-sign-compare

    But you should really fix the comparison it's warning you about anyway.

提交回复
热议问题