summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-03-05 03:58:29 +0100
committerBenjamin Otte <otte@redhat.com>2020-03-05 07:56:28 +0100
commitf6b11a51581cf443208db5a861b63c9e9bc5e384 (patch)
tree230e73c0124a05af85e45d4d44eb872f66ae3f0c /meson.build
parent38dcc8f63b839dee8cf70983fc73df685bda7e7a (diff)
downloadgtk+-f6b11a51581cf443208db5a861b63c9e9bc5e384.tar.gz
build: Add more useful warning flags
I found those on the interwebs and decided they are useful.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 2ba1516d7e..dea88448b7 100644
--- a/meson.build
+++ b/meson.build
@@ -238,12 +238,15 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
test_cflags = [
'-fno-strict-aliasing',
'-Wcast-align',
+ '-Wduplicated-branches',
+ '-Wduplicated-cond',
'-Wformat=2',
'-Wformat-nonliteral',
'-Wformat-security',
'-Wignored-qualifiers',
'-Wimplicit-function-declaration',
'-Wlogical-op',
+ '-Wmisleading-indentation',
'-Wmissing-format-attribute',
'-Wmissing-include-dirs',
'-Wmissing-noreturn',