From: Marius Vlad Date: Mon, 3 Feb 2020 16:48:36 +0000 (+0200) Subject: meson.build: Enable Wextra and transform warning messages into errors X-Git-Tag: 9.0.0~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=ed4a9b0d9c593777551af3145e27ea40aced3e31;p=src%2Fagl-compositor.git 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 Change-Id: Id7c48cb0e8b48f0f7ac6e9f4636b84c789c2e5e2 --- 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' )