summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2021-07-02 14:19:15 +0100
committerSimon McVittie <smcv@debian.org>2021-07-02 14:19:15 +0100
commita4dcfe8d2f81ee8d90570ab5593e3c0947d52371 (patch)
treeee5e098c007359a54fb928d0c7825d22d1a0df43
parentb7a2d4dc599756c0d3792e695a97d2c2418111d3 (diff)
downloadlibglnx-wip/stdc99.tar.gz
build: Use Meson built-in option c_std instead of -std=gnu99wip/stdc99
This silences a Meson warning. Signed-off-by: Simon McVittie <smcv@debian.org>
-rw-r--r--meson.build9
1 files changed, 7 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 74ee36a..cecb060 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,12 @@
-project('libglnx', 'c')
+project(
+ 'libglnx',
+ 'c',
+ default_options : [
+ 'c_std=gnu99',
+ ],
+)
add_project_arguments('-D_GNU_SOURCE', language: 'c')
-add_project_arguments('-std=gnu99', language: 'c')
add_project_arguments('-Wno-unused-local-typedefs', language: 'c')
cc = meson.get_compiler('c')