From 79b739d51aff1335938690eb60b380571ba78717 Mon Sep 17 00:00:00 2001
From: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
Date: Tue, 31 Mar 2020 18:03:45 +0200
Subject: [PATCH] meson: Raise default warning level.

Increases the default warning level to 3, which includes pedantic
errors. Disable them on C++, which is the way it was done before.

To resolve most pedantic warnings on C++ either the compiler standard
would need to be increased to c++2a or the remaining copositor backends
would require porting to plain C. One of each or both should happen in
the future.
---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 2e89e6f4b..97bedf3bf 100644
--- a/meson.build
+++ b/meson.build
@@ -9,7 +9,7 @@ project(
 	meson_version: '>=0.49.0',
 	default_options: [
 		'c_std=c11',
-		'warning_level=2',
+		'warning_level=3',
 	],
 )
 
@@ -18,12 +18,12 @@ cpp = meson.get_compiler('cpp')
 
 add_project_arguments(cc.get_supported_arguments([
 	'-D_XOPEN_SOURCE=700',
-	'-pedantic',
 	'-Wno-unused-parameter',
 ]), language: 'c')
 
 add_project_arguments(cpp.get_supported_arguments([
 	'-D_XOPEN_SOURCE=700',
+	'-Wno-pedantic',
 	'-Wno-unused-parameter',
 	'-Wno-deprecated-copy', # Eigen
 ]), language: 'cpp')