This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC warning options for numerical programs
- From: Jeffrey Walton <noloader at gmail dot com>
- To: GCC Users List <gcc-help at gcc dot gnu dot org>
- Date: Mon, 23 Apr 2012 00:20:43 -0400
- Subject: GCC warning options for numerical programs
- Reply-to: noloader at gmail dot com
Hi All,
http://www.gnu.org/software/gsl/manual/html_node/GCC-warning-options-for-numerical-programs.html
recommends the following:
gcc -ansi -pedantic -Werror -Wall -W
-Wmissing-prototypes -Wstrict-prototypes
-Wconversion -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align
-Wwrite-strings -Wnested-externs
-fshort-enums -fno-common -Dinline= -g -O2
Is it possible to efficiently tell which of the above options are not
included with -Wall -Wextra?
Wouldn't -Weverything be easier on folks who really want to know about
all errata? Its a helpful Clang switch.
Jeff