[frogr] meson: Use global project options to set -Wall, -Werror and -Wextra



commit 0f7afa772d9e3aad08f135dc4601af010aad1a34
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Wed May 24 07:39:42 2017 +0100

    meson: Use global project options to set -Wall, -Werror and -Wextra

 meson.build |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index a196e0d..c8d931b 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,10 @@
 project('frogr', 'c',
         version: '1.4',
-        license: 'GPL3')
+        license: 'GPL3',
+        default_options: [
+            'warnlevel=2',
+            'werror=true'
+        ])
 
 project_name = meson.project_name()
 project_version = meson.project_version()
@@ -17,8 +21,6 @@ frogr_conf.set_quoted('PACKAGE_NAME', project_name)
 frogr_conf.set_quoted('DATADIR', join_paths(prefix, datadir))
 frogr_conf.set_quoted('LOCALEDIR', join_paths(prefix, localedir))
 
-add_global_arguments('-Wno-deprecated-declarations', language:'c')
-
 compiler = meson.get_compiler('c')
 
 # Dependencies


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]