Disable all gcc warnings

GccG++Warnings

Gcc Problem Overview


I'm working on a project that will read compiler error messages of a particular variety and do useful things with them. The sample codebase I'm testing this on (a random open-source application), and hence rebuilding frequently, contains a few bits that generate warnings, which are of no interest to me.

How do I disable all warnings from GCC, so I can just see error messages if there are any?

Gcc Solutions


Solution 1 - Gcc

-w is the GCC-wide option to disable warning messages.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPhil MillerView Question on Stackoverflow
Solution 1 - GccPhil MillerView Answer on Stackoverflow