How to compile without warnings being treated as errors?

前端 未结 7 2177
迷失自我
迷失自我 2020-12-07 14:27

The problem is that the same code that compiles well on Windows, is unable to compile on Ubuntu. Every time I get this error:

cc1: warnings being treated as          


        
7条回答
  •  独厮守ぢ
    2020-12-07 15:04

    Sure, find where -Werror is set and remove that flag. Then warnings will be only warnings.

提交回复
热议问题