How can I compile without warnings being treated as errors? Ask Question

How can I compile without warnings being treated as errors? Ask Question

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 errors

Now, it's big code base and I don't like fix all the warnings.

Is there a way I can compile successfully in spite of the warnings?

ベストアンサー1

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

おすすめ記事