diff options
author | Vinson Lee <[email protected]> | 2015-03-07 14:07:10 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2015-03-09 17:28:39 -0700 |
commit | 5f759836ad75360a2f4581083043a86f7a8c1e09 (patch) | |
tree | f0a41101eaceba2f48cc9c2d188156b6764cbb93 /src | |
parent | 7aba4ab1f355ea1a5870b3deb4b295565132dfc5 (diff) |
Add macro for unused function attribute.
Suggested-by: Emil Velikov <[email protected]>
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/util/macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/macros.h b/src/util/macros.h index 63daba37c30..6c7bda7ae01 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -176,5 +176,11 @@ do { \ # endif #endif +#ifdef HAVE_FUNC_ATTRIBUTE_UNUSED +#define UNUSED __attribute__((unused)) +#else +#define UNUSED +#endif + #endif /* UTIL_MACROS_H */ |