meson: Fix test for "cleanup" attribute

When c_args included "-Werror=pedantic" the test would otherwise fail.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago committed by Gert Wollny
parent ae72487585
commit fab5e73314
  1. 2
      meson.build

@ -85,7 +85,7 @@ conf_data.set('VERSION', '0.8.1')
with_tracing = get_option('tracing') with_tracing = get_option('tracing')
if with_tracing != 'none' 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))') error('Tracing requires compiler support for __attribute__((cleanup))')
endif endif

Loading…
Cancel
Save