From 058efe8cce6b1b7388473e22e12ddd33b6980894 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sun, 10 Mar 2019 10:20:29 +0000 Subject: [PATCH] Use Meson's warning_level option Set this to 3, and then remove extra warning flags that are already included by enabling this (#107). --- meson.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meson.build b/meson.build index db0e5ab..86caf06 100644 --- a/meson.build +++ b/meson.build @@ -1,26 +1,21 @@ project( 'gamemode', 'c', - default_options : ['c_std=c11'], + default_options : ['c_std=c11', 'warning_level=3'], version: '1.3-dev', license: 'BSD', ) am_cflags = [ '-fstack-protector', - '-Wall', - '-pedantic', '-Wstrict-prototypes', '-Wundef', '-fno-common', '-Werror-implicit-function-declaration', - '-Wformat', '-Wformat-security', '-Werror=format-security', '-Wconversion', - '-Wunused-variable', '-Wunreachable-code', - '-W', ] # Add our main flags