Add macro for unused function attribute.

Suggested-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Vinson Lee
2015-03-07 14:07:10 -08:00
parent 7aba4ab1f3
commit 5f759836ad
3 changed files with 8 additions and 0 deletions

View File

@@ -176,5 +176,11 @@ do { \
# endif
#endif
#ifdef HAVE_FUNC_ATTRIBUTE_UNUSED
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
#endif /* UTIL_MACROS_H */