summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-02-03 18:48:36 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-02-10 18:43:51 +0000
commited4a9b0d9c593777551af3145e27ea40aced3e31 (patch)
tree0ef60e33b2013286fa1b338767bfaf9863464a54
parent191dc29c7d05d8af9aa2c659275436ec4c4495c0 (diff)
meson.build: Enable Wextra and transform warning messages into errors
Even though this is a bit too much it helps catch errors/type errors much sooner when building with yocto, as all of debug/verbose messages are suppressed normally. Bug-AGL: SPEC-3150 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Id7c48cb0e8b48f0f7ac6e9f4636b84c789c2e5e2
-rw-r--r--meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index c338ee6..b7fd577 100644
--- a/meson.build
+++ b/meson.build
@@ -16,6 +16,8 @@ add_project_arguments(
cc.get_supported_arguments([
'-Wno-unused-parameter',
'-Wno-pedantic',
+ '-Wextra',
+ '-Werror'
]),
language: 'c'
)