From 99f0d3e2561bd83f6e9d83800ced1b747eb3bd47 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 31 Aug 2023 13:07:11 +0200 Subject: [PATCH] build: avoid unused static inline function warning for clang clang reports unused static inline fuctions. Just disable this warning. Signed-off-by: Daniel Wagner --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index af79bd4d..bdada646 100644 --- a/meson.build +++ b/meson.build @@ -157,6 +157,11 @@ conf.set10( ), description: 'Is sys/random.h(getrandom) include-able?' ) +conf.set10( + 'HAVE_ATTRIBUTE_UNUSED', + cc.get_id() == 'clang', + description: 'Is compiler warning about unused static line function?' +) if cc.has_function_attribute('fallthrough') conf.set('fallthrough', '__attribute__((__fallthrough__))') -- 2.49.0