mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Enable more compiler warnings
This commit is contained in:
parent
1995a33df9
commit
82e9e866ec
12 changed files with 37 additions and 19 deletions
25
meson.build
25
meson.build
|
|
@ -19,13 +19,24 @@ add_project_arguments(
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
add_project_arguments(cc.get_supported_arguments(
|
||||
[
|
||||
'-Wno-unused-parameter',
|
||||
'-Wundef',
|
||||
]),
|
||||
language: 'c',
|
||||
)
|
||||
add_project_arguments(cc.get_supported_arguments([
|
||||
'-Wundef',
|
||||
'-Wlogical-op',
|
||||
'-Wmissing-include-dirs',
|
||||
'-Wold-style-definition',
|
||||
'-Wpointer-arith',
|
||||
'-Winit-self',
|
||||
'-Wstrict-prototypes',
|
||||
'-Wimplicit-fallthrough=2',
|
||||
'-Wendif-labels',
|
||||
'-Wstrict-aliasing=2',
|
||||
'-Woverflow',
|
||||
'-Wmissing-prototypes',
|
||||
'-Walloca',
|
||||
'-Wunused-macros',
|
||||
|
||||
'-Wno-unused-parameter',
|
||||
]), language: 'c')
|
||||
|
||||
version='"@0@"'.format(meson.project_version())
|
||||
git = find_program('git', native: true, required: false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue