From 24755fec0af93b00427de4c19b4f9bce4c436f75 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Thu, 8 Apr 2021 12:48:23 +0200 Subject: [PATCH] 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 --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 81181f6..690156e 100644 --- a/meson.build +++ b/meson.build @@ -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']