summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-07-14 09:58:15 +0200
committerJeremy Allison <jra@samba.org>2016-07-15 00:54:12 +0200
commitff5521838a474d6ff9489bb92438797db65671a6 (patch)
tree20c07c32672f29a60b844fc9e805db96f3433471 /lib
parentf061cccd0a806c949142bf74ab5af957e2d3a5cf (diff)
downloadsamba-ff5521838a474d6ff9489bb92438797db65671a6.tar.gz
Revert "tevent: avoid -Wtautological-compare errors with gcc6"
This reverts commit 2991f7709973fdcc2c0b83bbe15dda3f1ceae9b3. Breaks compile for older (<= 4.4) gccs. Needs to be done differently. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/tevent/tevent_util.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/tevent/tevent_util.h b/lib/tevent/tevent_util.h
index eb7586fd356..e2cdbb8d385 100644
--- a/lib/tevent/tevent_util.h
+++ b/lib/tevent/tevent_util.h
@@ -79,9 +79,6 @@ do { \
*/
#define DLIST_REMOVE(list, p) \
do { \
- _Pragma ("GCC diagnostic push") \
- _Pragma ("GCC diagnostic ignored \"-Wpragmas\"") \
- _Pragma ("GCC diagnostic ignored \"-Wtautological-compare\"") \
if ((p) == (list)) { \
if ((p)->next) (p)->next->prev = (p)->prev; \
(list) = (p)->next; \
@@ -93,7 +90,6 @@ do { \
if ((p)->next) (p)->next->prev = (p)->prev; \
} \
if ((p) != (list)) (p)->next = (p)->prev = NULL; \
- _Pragma ("GCC diagnostic pop") \
} while (0)
/*
@@ -124,11 +120,7 @@ do { \
(p)->next = (el)->next; \
(el)->next = (p); \
if ((p)->next) (p)->next->prev = (p); \
- _Pragma ("GCC diagnostic push") \
- _Pragma ("GCC diagnostic ignored \"-Wpragmas\"") \
- _Pragma ("GCC diagnostic ignored \"-Wtautological-compare\"") \
if ((list)->prev == (el)) (list)->prev = (p); \
- _Pragma ("GCC diagnostic pop") \
}\
} while (0)