summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2009-03-02 09:42:56 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2009-03-02 09:42:56 +0000
commit2b2bb8aed353f7593d0bf5944501f22173c45b35 (patch)
tree6bd2736c70151b127bf4374886b195c95ac8b1bc
parent1a9f8ee3caf0d3def310753f77069e639cd5078c (diff)
Fixup empty macro. Original comment from harti at freebsd.org:
Make the default RB_AUGMENT() produce a 'do {} while (0)' instead of nothing. This prevents the compiler from complaining about empty if statements when compiled with higher WARN levels. ok krw
-rw-r--r--sys/sys/tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/tree.h b/sys/sys/tree.h
index 08b1b2ebe0e..30c62b6d26c 100644
--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tree.h,v 1.11 2008/05/11 22:19:09 millert Exp $ */
+/* $OpenBSD: tree.h,v 1.12 2009/03/02 09:42:55 mikeb Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -329,7 +329,7 @@ struct { \
} while (0)
#ifndef RB_AUGMENT
-#define RB_AUGMENT(x)
+#define RB_AUGMENT(x) do {} while (0)
#endif
#define RB_ROTATE_LEFT(head, elm, tmp, field) do { \