From c516cd7bb461bc022b51250457dc234768cc37fe Mon Sep 17 00:00:00 2001 From: Layla Marchant Date: Wed, 9 Sep 2020 03:03:22 -0400 Subject: [PATCH] Replaced the SF_NOWARN flag with an SF_WARN flag which does the inverse. Fixes #18 --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index fca8fa3..e91abec 100644 --- a/configure.ac +++ b/configure.ac @@ -58,14 +58,12 @@ PKG_CHECK_MODULES([PANGO], [pango], [ echo "Note: Pango not found; Unicode will not be supported." ]) -AC_ARG_VAR([SF_NOWARN], [Set to 1 to disable compiler warnings (useful for older GCC versions)]) +AC_ARG_VAR([SF_WARN], [Set to 1 to enable compiler warnings]) AC_ARG_VAR([SF_SCREEN_WIDTH], [The width of the game window in pixels]) AC_ARG_VAR([SF_SCREEN_HEIGHT], [The height of the game window in pixels]) AC_ARG_VAR([SF_NOFONT], [Set to 1 to manually force the compiler not to include font/Unicode support]) AC_ARG_VAR([SF_RUN_IN_PLACE], [Set to 1 to compile Starfighter to run in-place (instead of installing)]) -AS_IF([test -n "$SF_NOWARN"], [ - echo "Disabling compiler warnings" -], [ +AS_IF([test -n "$SF_WARN"], [ STARFIGHTER_CPPFLAGS="$STARFIGHTER_CPPFLAGS -Wall -Wformat-truncation=0" ]) AS_IF([test -n "$SF_SCREEN_WIDTH"], [