BUILD: fix build warning on solaris based systems with __maybe_unused.

__maybe_unused is already defined there.
This commit is contained in:
David Carlier 2022-05-14 17:10:50 +01:00 committed by Willy Tarreau
parent 9b6becb312
commit 135c1ec139

View File

@ -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.