From f6071344e355e46072475b5578da6673294427c1 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 7 Apr 2024 09:42:28 +0530 Subject: meson: set c standard and _POSIX_C_SOURCE --- meson.build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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') -- cgit v1.2.3