Add -Wunused_result to debug build compiler flags
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
a6b2524762
commit
4856fb53ac
1 changed files with 1 additions and 0 deletions
|
@ -233,6 +233,7 @@ if get_option('debug')
|
||||||
'-Wuninitialized',
|
'-Wuninitialized',
|
||||||
'-Wunused-but-set-parameter',
|
'-Wunused-but-set-parameter',
|
||||||
'-Wunused-parameter',
|
'-Wunused-parameter',
|
||||||
|
'-Wunused-result',
|
||||||
'-Wwrite-strings',
|
'-Wwrite-strings',
|
||||||
]
|
]
|
||||||
add_project_arguments(cc.get_supported_arguments(extra_cflags), language : 'c')
|
add_project_arguments(cc.get_supported_arguments(extra_cflags), language : 'c')
|
||||||
|
|
Loading…
Add table
Reference in a new issue