mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
build: Loosen --enable-compile-warnings check
Instead of requiring --enable-compile-warnings or --enable-compile-warnings=yes, allow any value which is not ‘no’. This enables compile warnings for --enable-compile-warnings=maximum or --enable-compile-warnings=error, which are common values for other GNOME projects. While we don’t change our behaviour for [yes, maximum, error], at least it means the warnings are enabled now, rather than disabled. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
9652839606
commit
22700faf88
@ -3390,7 +3390,7 @@ AC_ARG_ENABLE(compile-warnings,
|
|||||||
[AS_HELP_STRING([--disable-compile-warnings],
|
[AS_HELP_STRING([--disable-compile-warnings],
|
||||||
[Don't use builtin compiler warnings])],,
|
[Don't use builtin compiler warnings])],,
|
||||||
enable_compile_warnings=yes)
|
enable_compile_warnings=yes)
|
||||||
AS_IF([test "x$enable_compile_warnings" = xyes], [
|
AS_IF([test "x$enable_compile_warnings" != xno], [
|
||||||
CC_CHECK_FLAGS_APPEND([GLIB_WARN_CFLAGS], [CFLAGS], [\
|
CC_CHECK_FLAGS_APPEND([GLIB_WARN_CFLAGS], [CFLAGS], [\
|
||||||
-Wall -Wstrict-prototypes -Werror=declaration-after-statement \
|
-Wall -Wstrict-prototypes -Werror=declaration-after-statement \
|
||||||
-Werror=missing-prototypes -Werror=implicit-function-declaration \
|
-Werror=missing-prototypes -Werror=implicit-function-declaration \
|
||||||
|
Loading…
Reference in New Issue
Block a user