• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GCC/Clang error/warning flags?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: GCC/Clang error/warning flags?
      • From: Ronald Domes <email@hidden>
References: 
 >GCC/Clang error/warning flags? (From: Heath Borders <email@hidden>)

  • Prev by Date: GCC/Clang error/warning flags?
  • Next by Date: Re: GCC/Clang error/warning flags?
  • Previous by thread: GCC/Clang error/warning flags?
  • Next by thread: Re: GCC/Clang error/warning flags?
  • Index(es):
    • Date
    • Thread