[glib/wip/otte/fallthrough: 3/3] build: Enable -Wimplicit-fallthrough by default



commit b944ffd1bbbfc1fa6836b681d734e417fe03d46a
Author: Benjamin Otte <otte redhat com>
Date:   Sun Sep 2 20:47:48 2018 +0200

    build: Enable -Wimplicit-fallthrough by default

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 64f2fcab6..230647d39 100644
--- a/meson.build
+++ b/meson.build
@@ -350,6 +350,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
     # Due to pervasive use of things like GPOINTER_TO_UINT(), we do not support
     # building with -Wbad-function-cast.
     '-Wno-bad-function-cast',
+    '-Wimplicit-fallthrough',
     '-Werror=declaration-after-statement',
     '-Werror=format=2',
     '-Werror=format-security',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]