summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-01 22:39:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-01 22:39:25 -0400
commit6e70241de63ba7d4412419154142bb5e84995edd (patch)
tree5422e0988ad038ffe69f7dc4378a01fcd7f704ed /meson.build
parented34d7eaff5ffbfe0f7a19d2b024e33e32e2ced3 (diff)
downloadpango-6e70241de63ba7d4412419154142bb5e84995edd.tar.gz
Add a few more warning flags
Add warning flags for the just fixed warnings to the build. This is in order to ensure that pango builds in ci as a subproject of gtk.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1d0b7d2c..619e6f33 100644
--- a/meson.build
+++ b/meson.build
@@ -87,6 +87,7 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Wno-uninitialized',
'-Wno-shadow',
'-Werror=implicit',
+ '-Werror=implicit-fallthrough',
'-Werror=nonnull',
'-Werror=init-self',
'-Werror=main',
@@ -101,6 +102,7 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Werror=pointer-to-int-cast',
'-Werror=empty-body',
'-Werror=write-strings',
+ '-Werror=unused-but-set-variable',
'-Wundef', # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=792481
]