From: David Carlier Date: Sat, 14 May 2022 16:10:50 +0000 (+0100) Subject: BUILD: fix build warning on solaris based systems with __maybe_unused. X-Git-Tag: v2.6-dev11~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=135c1ec139d169a9fa432b8d85c6c76c1e57b0cc;p=thirdparty%2Fhaproxy.git BUILD: fix build warning on solaris based systems with __maybe_unused. __maybe_unused is already defined there. --- 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.