Re: GCC/Clang error/warning flags?
Re: GCC/Clang error/warning flags?
- Subject: Re: GCC/Clang error/warning flags?
- From: Jeffrey Walton <email@hidden>
- Date: Sun, 11 Dec 2011 18:36:40 -0500
On Sun, Dec 11, 2011 at 1:21 PM, Heath Borders <email@hidden> wrote:
> Where in the GCC and Clang documentation can I find a list of all
> error and warning flags? I've looked all over their respective sites
> and I can't find anything. The closest thing I found was this clang
> source:
>
> http://clang.llvm.org/doxygen/Tools_8cpp_source.html
I'm not aware of a complete list of GCC flags, options, and warnings
(http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html and associated
pages are not really complete). You usually need to know what you
want, and then you go hunting for the switch.
What really irkes me is there is no way to turn on "all' warnings".
-Wall -Wextra only turns on most warnings. -Wall -Wextra is missing a
number of interesting warnings, such as -Wconversion and
-Wformat-security. Of course, my view assumes truncation and format
string vulnerabilities are a bad thing (many folks apparently embrace
them).
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden