diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-04-07 09:42:28 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-04-07 09:43:01 +0530 |
commit | f6071344e355e46072475b5578da6673294427c1 (patch) | |
tree | 9c46f3154b2f785611ee5947604527ccdacdad17 | |
parent | 59831e558edccc86338d0fb24d28025ec6159cc1 (diff) |
meson: set c standard and _POSIX_C_SOURCE
-rw-r--r-- | meson.build | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build index dd98966..4d36aab 100644 --- a/meson.build +++ b/meson.build @@ -4,10 +4,19 @@ project( version : '0.1', license: 'GPL-3.0-only', default_options : [ - 'warning_level=3', + 'c_std=c99', + 'warning_level=2', ] ) +add_project_arguments( + [ + '-D_POSIX_C_SOURCE=200809L', + '-Wvla', + ], + language: 'c', +) + gpgme_dep = dependency('gpgme', version: '>= 1.0') npass_inc = include_directories('include') |