meson.build: Enable Wextra and transform warning messages into errors 29/23729/2
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 3 Feb 2020 16:48:36 +0000 (18:48 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 10 Feb 2020 18:43:51 +0000 (18:43 +0000)
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

meson.build

index c338ee6..b7fd577 100644 (file)
@@ -16,6 +16,8 @@ add_project_arguments(
   cc.get_supported_arguments([
     '-Wno-unused-parameter',
     '-Wno-pedantic',
+    '-Wextra',
+    '-Werror'
   ]),
   language: 'c'
 )