summaryrefslogtreecommitdiff
path: root/package/tor/patches/patch-src_common_util_h
blob: f6607ffc10236e985ad763f386d4b6d2c30581f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- tor-0.2.1.20.orig/src/common/util.h	2009-06-19 08:13:53.000000000 +0200
+++ tor-0.2.1.20/src/common/util.h	2009-12-03 23:47:21.000000000 +0100
@@ -24,20 +24,6 @@
 #define O_TEXT 0
 #endif
 
-/* Replace assert() with a variant that sends failures to the log before
- * calling assert() normally.
- */
-#ifdef NDEBUG
-/* Nobody should ever want to build with NDEBUG set.  99% of our asserts will
- * be outside the critical path anyway, so it's silly to disable bug-checking
- * throughout the entire program just because a few asserts are slowing you
- * down.  Profile, optimize the critical path, and keep debugging on.
- *
- * And I'm not just saying that because some of our asserts check
- * security-critical properties.
- */
-#error "Sorry; we don't support building with NDEBUG."
-#endif
 
 /** Like assert(3), but send assertion failures to the log as well as to
  * stderr. */