aboutsummaryrefslogtreecommitdiff
path: root/src/lib/cc
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-07-03 12:33:09 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2018-07-03 12:33:09 +0300
commitfedb3e46ec39e2e980eb1ae25138e9e0b310d084 (patch)
tree67afd8e9fb365c4ca4bc8fd62ba0a3f60ac2ac39 /src/lib/cc
parenta9628c0c0b2cc5c0286c4e49591b3b18dc054e87 (diff)
downloadtor-fedb3e46ec39e2e980eb1ae25138e9e0b310d084.tar.gz
tor-fedb3e46ec39e2e980eb1ae25138e9e0b310d084.zip
Remove ATTR_NONNULL macro
Diffstat (limited to 'src/lib/cc')
-rw-r--r--src/lib/cc/compat_compiler.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/cc/compat_compiler.h b/src/lib/cc/compat_compiler.h
index c631a7e821..084923eb09 100644
--- a/src/lib/cc/compat_compiler.h
+++ b/src/lib/cc/compat_compiler.h
@@ -125,16 +125,6 @@
#define ATTR_MALLOC __attribute__((malloc))
#define ATTR_NORETURN __attribute__((noreturn))
#define ATTR_WUR __attribute__((warn_unused_result))
-/* Alas, nonnull is not at present a good idea for us. We'd like to get
- * warnings when we pass NULL where we shouldn't (which nonnull does, albeit
- * spottily), but we don't want to tell the compiler to make optimizations
- * with the assumption that the argument can't be NULL (since this would make
- * many of our checks go away, and make our code less robust against
- * programming errors). Unfortunately, nonnull currently does both of these
- * things, and there's no good way to split them up.
- *
- * #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
@@ -158,7 +148,6 @@
#define ATTR_CONST
#define ATTR_MALLOC
#define ATTR_NORETURN
-#define ATTR_NONNULL(x)
#define ATTR_UNUSED
#define ATTR_WUR
#define PREDICT_LIKELY(exp) (exp)