[libsanitizer] Remove semicolon after do {} while (0) in macro body
authorTom de Vries <tom@codesourcery.com>
Sun, 5 Nov 2017 09:57:17 +0000 (09:57 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sun, 5 Nov 2017 09:57:17 +0000 (09:57 +0000)
2017-11-05  Tom de Vries  <tom@codesourcery.com>

PR other/82784
* asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
"do {} while (0)".
* lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.

From-SVN: r254419

libsanitizer/ChangeLog
libsanitizer/asan/asan_poisoning.cc
libsanitizer/lsan/lsan_common.cc

index 63e71317cbfb979af5efb1962270a3c34b440f85..0428650d9067830f7b4c9ddb60a861ad7ec06e08 100644 (file)
@@ -1,3 +1,10 @@
+2017-11-05  Tom de Vries  <tom@codesourcery.com>
+
+       PR other/82784
+       * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
+       "do {} while (0)".
+       * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
+
 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/82595
index 15cd8eaac3e0688730847d226c15a68548dbdb08..1343dfbd39efaca129234c659739a7222c9435de 100644 (file)
@@ -215,7 +215,7 @@ uptr __asan_region_is_poisoned(uptr beg, uptr size) {
       uptr __bad = __asan_region_is_poisoned(__p, __size);    \
       __asan_report_error(pc, bp, sp, __bad, isWrite, __size, 0);\
     }                                                         \
-  } while (false);                                            \
+  } while (false)
 
 
 extern "C" SANITIZER_INTERFACE_ATTRIBUTE
index a3274d5c1c3dffe2e573b81e7ea1e1a930d8e91a..4afce9df071a81a357910f4aeb05af1437a744a6 100644 (file)
@@ -55,12 +55,12 @@ void RegisterLsanFlags(FlagParser *parser, Flags *f) {
 #define LOG_POINTERS(...)                           \
   do {                                              \
     if (flags()->log_pointers) Report(__VA_ARGS__); \
-  } while (0);
+  } while (0)
 
 #define LOG_THREADS(...)                           \
   do {                                             \
     if (flags()->log_threads) Report(__VA_ARGS__); \
-  } while (0);
+  } while (0)
 
 ALIGNED(64) static char suppression_placeholder[sizeof(SuppressionContext)];
 static SuppressionContext *suppression_ctx = nullptr;