Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

can some one help me to understand the use of -Wall flag in gcc? I am working on make file and not able to understand this flag.

Thanks, vivek

share|improve this question

closed as off topic by mikewhatever, fabricator4, hhlp, Scaine, Anwar Shah Jan 12 '13 at 14:32

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

I recommend asking programming questions on Stack Overflow, you're likely to get better answers there. – Flimm Jan 12 '13 at 8:58

1 Answer 1

Sometimes, compiler does not show few trivial warnings. -Wall: W stands for warning, hence W+All=shown all possible warnings.

share|improve this answer
what is the flag to suppress all the warnings? – Vivek Jan 12 '13 at 9:32
... except that -Wall does not show all possible warnings, only the most commonly used ones. You can get even more warnings with -Wextra, and even that doesn't turn on all possible warnings. – ams Jan 14 '13 at 9:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.