From fab5e73314a0ab6b8ec900d8a386ecbcedb62866 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 29 Jan 2021 16:14:52 +0100 Subject: [PATCH] meson: Fix test for "cleanup" attribute When c_args included "-Werror=pedantic" the test would otherwise fail. Signed-off-by: Gert Wollny Reviewed-by: Chia-I Wu --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index fc9dea7..f4c09e5 100644 --- a/meson.build +++ b/meson.build @@ -85,7 +85,7 @@ conf_data.set('VERSION', '0.8.1') with_tracing = get_option('tracing') if with_tracing != 'none' - if not cc.compiles('void f(void* v){}; int main () { void *dummy __attribute__((cleanup (f))) = 0;}') + if not cc.compiles('void f(void* v){} int main () { void *dummy __attribute__((cleanup (f))) = 0;}') error('Tracing requires compiler support for __attribute__((cleanup))') endif