Skip to content

Commit

Permalink
Add -Wformat and -Wformat-security gcc options when --enable-debug-fl…
Browse files Browse the repository at this point in the history
…ags is set, move default optimization to -O2 by default (-O0 is only useful for specific debugging purposes).
  • Loading branch information
Laurent Monin committed Jan 26, 2009
1 parent a24c1c6 commit 4fcae73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])]

if test "x${enable_debug_flags}" != "xno"
then
CXXFLAGS="${CXXFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter"
CFLAGS="${CFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter"
CXXFLAGS="${CXXFLAGS} -g -O2 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter -Wformat -Wformat-security"
CFLAGS="${CFLAGS} -g -O2 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter -Wformat -Wformat-security"
if test "x${enable_developer}" == "xyes"
then
CXXFLAGS="${CXXFLAGS} -Wall"
Expand Down

0 comments on commit 4fcae73

Please sign in to comment.