From: Alan Coopersmith Date: Tue, 8 Oct 2024 00:13:53 +0000 (-0700) Subject: meson: Fix check for Solaris audit API to work with gcc 14 X-Git-Tag: dbus-1.15.12~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=274c16589f7fade206a736b2c66ba94a2e1625eb;p=thirdparty%2Fdbus.git meson: Fix check for Solaris audit API to work with gcc 14 Need to declare a variable type to avoid gcc 14 error: error: type defaults to 'int' in declaration of 'adt_user_context' [-Wimplicit-int] Fixes: cd2e3826 ("Add Meson build system") Signed-off-by: Alan Coopersmith --- diff --git a/meson.build b/meson.build index d512f798f..44bd6d2d6 100644 --- a/meson.build +++ b/meson.build @@ -568,7 +568,7 @@ endif adt_api_check = cc.compiles(''' #include int main() { - adt_user_context = ADT_USER; + int adt_user_context = ADT_USER; return 0; } ''', args: compile_args_c)