]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove an extraneous parenthesis in IF_BUG_OHNCE__
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Sep 2016 14:53:49 +0000 (10:53 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Sep 2016 14:53:49 +0000 (10:53 -0400)
Fixes bug 20141; bugfix on 0.2.9.1-alpha.

Patch from Gisle Vanem.

changes/bug20141 [new file with mode: 0644]
src/common/util_bug.h

diff --git a/changes/bug20141 b/changes/bug20141
new file mode 100644 (file)
index 0000000..99ecf0a
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (compilation):
+    - Fix a syntax error in the IF_BUG_ONCE__() macro in non-
+      GCC-compatible compilers. Fixes bug 20141; bugfix on
+      0.2.9.1-alpha. Patch from Gisle Vanem.
index 8b69a476077b0b4135f2e7849dde024980e8aadf..e02778110b2b3bb74ad3e7bab761b0e3eca506e1 100644 (file)
 #else
 #define IF_BUG_ONCE__(cond,var)                                         \
   static int var = 0;                                                   \
-  if (PREDICT_UNLIKELY(cond)) ?                                         \
+  if (PREDICT_UNLIKELY(cond) ?                                          \
       (var ? 1 :                                                        \
        (var=1,                                                          \
         tor_bug_occurred_(SHORT_FILE__, __LINE__, __func__,             \