diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2014-12-02 18:28:38 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-12-08 14:00:29 +0100 |
commit | e2f4e29955f6c1dcb0c3097ff99f1747923e2f48 (patch) | |
tree | 9ebaa736c146ca3fb6e3f9103c9860e5dd19e0af /acinclude.m4 | |
parent | 368701ed9cdfdd4564c3da7c9d442293ac6ffd36 (diff) | |
download | bluez-e2f4e29955f6c1dcb0c3097ff99f1747923e2f48.tar.gz |
build: Enable -Wswitch-enum in maintainer mode
This makes GCC verify if all enum values are listed in switch.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 206585293..4c241bf0b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -20,6 +20,7 @@ AC_DEFUN([COMPILER_FLAGS], [ with_cflags="$with_cflags -Wmissing-declarations" with_cflags="$with_cflags -Wredundant-decls" with_cflags="$with_cflags -Wcast-align" + with_cflags="$with_cflags -Wswitch-enum" with_cflags="$with_cflags -DG_DISABLE_DEPRECATED" with_cflags="$with_cflags -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_28" with_cflags="$with_cflags -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_28" |