Kaynağa Gözat

Use Meson's warning_level option

Set this to 3, and then remove extra warning flags that are already included
by enabling this (#107).
Alex Smith 6 yıl önce
ebeveyn
işleme
058efe8cce
1 değiştirilmiş dosya ile 1 ekleme ve 6 silme
  1. 1 6
      meson.build

+ 1 - 6
meson.build

@@ -1,26 +1,21 @@
 project(
 project(
     'gamemode',
     'gamemode',
     'c',
     'c',
-    default_options : ['c_std=c11'],
+    default_options : ['c_std=c11', 'warning_level=3'],
     version: '1.3-dev',
     version: '1.3-dev',
     license: 'BSD',
     license: 'BSD',
 )
 )
 
 
 am_cflags = [
 am_cflags = [
     '-fstack-protector',
     '-fstack-protector',
-    '-Wall',
-    '-pedantic',
     '-Wstrict-prototypes',
     '-Wstrict-prototypes',
     '-Wundef',
     '-Wundef',
     '-fno-common',
     '-fno-common',
     '-Werror-implicit-function-declaration',
     '-Werror-implicit-function-declaration',
-    '-Wformat',
     '-Wformat-security',
     '-Wformat-security',
     '-Werror=format-security',
     '-Werror=format-security',
     '-Wconversion',
     '-Wconversion',
-    '-Wunused-variable',
     '-Wunreachable-code',
     '-Wunreachable-code',
-    '-W',
 ]
 ]
 
 
 # Add our main flags
 # Add our main flags