]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix build warning on solaris based systems with __maybe_unused.
authorDavid Carlier <devnexen@gmail.com>
Sat, 14 May 2022 16:10:50 +0000 (17:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 May 2022 09:42:20 +0000 (11:42 +0200)
__maybe_unused is already defined there.

include/haproxy/compiler.h

index 49356daab86a6cf8488dd8eca3436e1e7c0138c7..a935ac3b5ad5432e66cbd633f5bee467265bb139 100644 (file)
 #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.