]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: Fix check for Solaris audit API to work with gcc 14
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 8 Oct 2024 00:13:53 +0000 (17:13 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 8 Oct 2024 00:13:53 +0000 (17:13 -0700)
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 <alan.coopersmith@oracle.com>
meson.build

index d512f798ff471dcbc13d44e1b8efbb726fa05e09..44bd6d2d6523705cc3c4552077aa60028b252db7 100644 (file)
@@ -568,7 +568,7 @@ endif
 adt_api_check = cc.compiles('''
 #include <bsm/adt.h>
 int main() {
-    adt_user_context = ADT_USER;
+    int adt_user_context = ADT_USER;
     return 0;
 }
 ''', args: compile_args_c)