[glib/wip/otte/fallthrough: 3/3] build: Enable -Wimplicit-fallthrough by default
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/otte/fallthrough: 3/3] build: Enable -Wimplicit-fallthrough by default
- Date: Wed, 12 Sep 2018 11:54:22 +0000 (UTC)
commit 2130973f5c4db4b1d80cc33b884e08706faa09f5
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]