diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 14:26:44 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 16:48:18 +0200 |
commit | 9a3567d5c0f6c451d008da003e64c5ba91e53842 (patch) | |
tree | ff99ffb2cc3835ba227b616ec27dab98bcfe0aaa /configure.ac | |
parent | 80923051b3e803bf5bdc118c3bac246a308497d6 (diff) | |
download | gobject-introspection-9a3567d5c0f6c451d008da003e64c5ba91e53842.tar.gz |
build: enable -Wdiscarded-qualifiers
Except for the Python module because nothing in the CPython API is marked const
and we'd have to cast everywhere.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9ae070c0..d35337cb 100644 --- a/configure.ac +++ b/configure.ac @@ -63,12 +63,16 @@ fi m4_ifndef([AX_COMPILER_FLAGS], [AC_MSG_ERROR(['autoconf-archive' missing])]) AX_COMPILER_FLAGS(,, [yes]) # These get triggered a lot, not worth it imo, but feel free to fix them -AX_APPEND_COMPILE_FLAGS([-Wno-discarded-qualifiers -Wno-duplicated-branches -Wno-switch-enum]) +AX_APPEND_COMPILE_FLAGS([-Wno-duplicated-branches -Wno-switch-enum]) # FIXME: Fix the warnings and remove the flags AX_APPEND_COMPILE_FLAGS([-Wno-redundant-decls -Wno-switch-default -Wno-shadow -Wno-deprecated-declarations -Wno-cast-function-type -Wno-type-limits]) AX_APPEND_COMPILE_FLAGS([-Wno-implicit-fallthrough -Wno-suggest-attribute=format -Wno-double-promotion -Wno-sign-compare]) AX_APPEND_COMPILE_FLAGS([-Wno-incompatible-pointer-types]) +WARN_CFLAGS_PYTHON="$WARN_CFLAGS" +AX_APPEND_COMPILE_FLAGS([-Wno-discarded-qualifiers], [WARN_CFLAGS_PYTHON]) +AC_SUBST(WARN_CFLAGS_PYTHON) + # Checks for libraries. AC_CHECK_LIB([dl], [dlopen]) |