Replaced the SF_NOWARN flag with an SF_WARN flag which does the inverse.

Fixes #18
This commit is contained in:
Layla Marchant 2020-09-09 03:03:22 -04:00
parent 000905e6af
commit c516cd7bb4
No known key found for this signature in database
GPG Key ID: 52FB5C20A8336782
1 changed files with 2 additions and 4 deletions

View File

@ -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"], [