mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 15:47:20 +02:00
Use Meson's warning_level option
Set this to 3, and then remove extra warning flags that are already included by enabling this (#107).
This commit is contained in:
parent
433370e3fa
commit
058efe8cce
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user