How to compile without warnings being treated as errors?

前端 未结 7 2176
迷失自我
迷失自我 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:12

    Thanks for all the helpful suggestions. I finally made sure that there are no warnings in my code, but again was getting this warning from sqlite3:

    Assuming signed overflow does not occur when assuming that (X - c) <= X is always true
    

    which I fixed by adding the following CFLAG:

    -fno-strict-overflow
    
    0 讨论(0)
提交回复
热议问题