diff options
author | Simon McVittie <smcv@debian.org> | 2021-07-02 14:19:15 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2021-07-02 14:19:15 +0100 |
commit | a4dcfe8d2f81ee8d90570ab5593e3c0947d52371 (patch) | |
tree | ee5e098c007359a54fb928d0c7825d22d1a0df43 /meson.build | |
parent | b7a2d4dc599756c0d3792e695a97d2c2418111d3 (diff) | |
download | libglnx-a4dcfe8d2f81ee8d90570ab5593e3c0947d52371.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>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
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') |