From 135c1ec139d169a9fa432b8d85c6c76c1e57b0cc Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 14 May 2022 17:10:50 +0100 Subject: [PATCH] BUILD: fix build warning on solaris based systems with __maybe_unused. __maybe_unused is already defined there. --- include/haproxy/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/haproxy/compiler.h b/include/haproxy/compiler.h index 49356daab8..a935ac3b5a 100644 --- a/include/haproxy/compiler.h +++ b/include/haproxy/compiler.h @@ -58,10 +58,12 @@ #endif #endif +#ifndef __maybe_unused /* silence the "unused" warnings without having to place painful #ifdefs. * For use with variables or functions. */ #define __maybe_unused __attribute__((unused)) +#endif /* These macros are used to declare a section name for a variable. * WARNING: keep section names short, as MacOS limits them to 16 characters. -- 2.47.3