mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-17 15:38:10 +02:00
build: Start using common_cflags
- Remove -Wall it's implied by warning_level=1 - Remove -std as it's implied by c_std - Remove -fvisibility=hidden, we aren't a library
This commit is contained in:
parent
bc05738c1d
commit
24755fec0a
1 changed files with 1 additions and 3 deletions
|
|
@ -12,9 +12,6 @@ cc = meson.get_compiler('c')
|
|||
|
||||
common_cflags = cc.get_supported_arguments([
|
||||
'-fgnu89-inline',
|
||||
'-fvisibility=hidden',
|
||||
'-std=gnu99',
|
||||
'-Wall',
|
||||
'-Wundef',
|
||||
'-Wunused',
|
||||
'-Wstrict-prototypes',
|
||||
|
|
@ -41,6 +38,7 @@ upower_dep = dependency('upower-glib')
|
|||
gnome = import('gnome')
|
||||
|
||||
add_global_arguments('-D_GNU_SOURCE=1', language: 'c')
|
||||
add_global_arguments(common_cflags, language: 'c')
|
||||
|
||||
pylint = find_program('pylint-3', 'pylint3', 'pylint', required: false)
|
||||
pylint_flags = ['-d', 'C0116', '-d', 'C0114', '-d', 'W0707']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue