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:
Luca Stefani 2021-04-08 12:48:23 +02:00
parent bc05738c1d
commit 24755fec0a

View file

@ -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']