all repos — openbox @ d291a9c7aa685b6d8bd6aa70cdc543926702c301

openbox fork - make it a bit more like ryudo

don't use -Wextra unless --enable-super-warnings
Dana Jansens danakj@orodu.net
commit

d291a9c7aa685b6d8bd6aa70cdc543926702c301

parent

d082572b17443b1e8a72d8b893d720e99aaf3dfe

1 files changed, 12 insertions(+), 3 deletions(-)

jump to
M m4/openbox.m4m4/openbox.m4

@@ -11,6 +11,10 @@ AC_ARG_ENABLE([strict-ansi],

AC_HELP_STRING([--enable-strict-ansi],[Enable strict ANSI compliance build [[default=no]]]), [STRICT=$enableval], [STRICT="no"]) + AC_ARG_ENABLE([super-warnings], + AC_HELP_STRING([--enable-super-warnings],[Enable extra compiler warnings [[default=no]]]), + [SUPERWARN=$enableval], [SUPERWARN="no"]) + AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug],[build a debug version [[default=no]]]), [DEBUG=$enableval], [DEBUG="no"])

@@ -43,6 +47,9 @@ fi

if test "$STRICT" = "yes"; then MSG="$MSG with strict ANSI compliance" fi + if test "$SUPERWARN" = "yes"; then + MSG="$MSG with super warnings" + fi AC_MSG_RESULT([$MSG]) test "$DEBUG" = "yes" && \

@@ -77,11 +84,13 @@ if test "$DEBUG" = "yes"; then

FLAGS="$FLAGS -O0 -ggdb -fno-inline -Wwrite-strings" FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return" FLAGS="$FLAGS -Wbad-function-cast -Wpointer-arith" - FLAGS="$FLAGS -Wno-write-strings -Wextra" - # glib can't handle this flag - # -Wcast-qual + FLAGS="$FLAGS -Wno-write-strings" # for Python.h #FLAGS="$FLAGS -Wno-long-long" + fi + if test "$SUPERWARN" = "yes"; then + # glib can't handle -Wcast-qual + FLAGS="$FLAGS -Wcast-qual -Wextra" fi if test "$STRICT" = "yes"; then FLAGS="$FLAGS -ansi -pedantic -D_XOPEN_SOURCE"