[PATCH 1/7] [libsanitizer, committed] Remove semicolon after do {} while (0) in macro body

Tom de Vries Tom_deVries@mentor.com
Sun Nov 5 10:02:00 GMT 2017


Hi,

this removes a semicolon after "do {} while (0)" in several macro bodies 
in libsanitizer. This allows the macros to be used in if-then-elses 
without curly braces.

Committed as obvious.

Thanks,
- Tom

2017-11-02  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.

Signed-off-by: Tom de Vries <tom@codesourcery.com>
---
      libsanitizer/asan/asan_poisoning.cc | 2 +-
      libsanitizer/lsan/lsan_common.cc    | 4 ++--
      2 files changed, 3 insertions(+), 3 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libsanitizer-Remove-semicolon-after-do-while-0-in-ma.patch
Type: text/x-patch
Size: 1398 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171105/59e3e855/attachment.bin>


More information about the Gcc-patches mailing list