diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-05 19:26:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-05 19:26:58 +0200 |
commit | 466ee1f75c837f6c6d3585cc7f91db201521cb9c (patch) | |
tree | bbd2eff73f61b33eac2e65f3cc4df155664bcc04 | |
parent | ff5075e7f149ffeb9934cb4a505660fc80a9c655 (diff) | |
download | gnunet-466ee1f75c837f6c6d3585cc7f91db201521cb9c.tar.gz gnunet-466ee1f75c837f6c6d3585cc7f91db201521cb9c.zip |
-move pop to not break gcc
-rw-r--r-- | src/include/gnunet_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 8cfeab1cc..35389e63e 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -882,7 +882,6 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind); | |||
882 | _Pragma("GCC diagnostic push") \ | 882 | _Pragma("GCC diagnostic push") \ |
883 | _Pragma("GCC diagnostic ignored \"-Wtautological-compare\"") \ | 883 | _Pragma("GCC diagnostic ignored \"-Wtautological-compare\"") \ |
884 | if (! (cond)) \ | 884 | if (! (cond)) \ |
885 | _Pragma("GCC diagnostic pop") \ | ||
886 | { \ | 885 | { \ |
887 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \ | 886 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, \ |
888 | _ ("Assertion failed at %s:%d. Aborting.\n"), \ | 887 | _ ("Assertion failed at %s:%d. Aborting.\n"), \ |
@@ -890,6 +889,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind); | |||
890 | __LINE__); \ | 889 | __LINE__); \ |
891 | GNUNET_abort_ (); \ | 890 | GNUNET_abort_ (); \ |
892 | } \ | 891 | } \ |
892 | _Pragma("GCC diagnostic pop") \ | ||
893 | } while (0) | 893 | } while (0) |
894 | #else | 894 | #else |
895 | /* older GCC/clangs do not support -Wtautological-compare */ | 895 | /* older GCC/clangs do not support -Wtautological-compare */ |