diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-15 00:03:29 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-15 00:03:29 -0500 |
commit | 339a47e80bcb898f96e41b9110dda07dd3a2fd05 (patch) | |
tree | 8cf95d1bc42cb6dd12c36531f4075078924e4f36 /src/common/compat.h | |
parent | 198789462609c339d60d554fa398a0d6dbe7a962 (diff) | |
parent | e4bc757cde98ed50723bab176eca77ad57cc483c (diff) | |
download | tor-339a47e80bcb898f96e41b9110dda07dd3a2fd05.tar.gz tor-339a47e80bcb898f96e41b9110dda07dd3a2fd05.zip |
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 8e700a9a13..32effa5c74 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -169,6 +169,7 @@ extern INLINE double U64_TO_DBL(uint64_t x) { * * #define ATTR_NONNULL(x) __attribute__((nonnull x)) */ #define ATTR_NONNULL(x) +#define ATTR_UNUSED __attribute__ ((unused)) /** Macro: Evaluates to <b>exp</b> and hints the compiler that the value * of <b>exp</b> will probably be true. @@ -192,6 +193,7 @@ extern INLINE double U64_TO_DBL(uint64_t x) { #define ATTR_MALLOC #define ATTR_NORETURN #define ATTR_NONNULL(x) +#define ATTR_UNUSED #define PREDICT_LIKELY(exp) (exp) #define PREDICT_UNLIKELY(exp) (exp) #endif |