* [PATCH 3/7] [graphite, committed] Remove semicolon after do {} while (0) in DEBUG_PRINT
@ 2017-11-05 10:04 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2017-11-05 10:04 UTC (permalink / raw)
To: GCC Patches; +Cc: Sebastian Pop
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
Hi,
this patch removes a semicolon after "do {} while (0)" in DEBUG_PRINT.
This allows the macro 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
* graphite-scop-detection.c (DEBUG_PRINT): Remove semicolon
after "do {} while (0)".
Signed-off-by: Tom de Vries <tom@codesourcery.com>
---
gcc/graphite-scop-detection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[-- Attachment #2: 0003-graphite-Remove-semicolon-after-do-while-0-in-DEBUG_.patch --]
[-- Type: text/x-patch, Size: 497 bytes --]
diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c
index c236556..dd273a4 100644
--- a/gcc/graphite-scop-detection.c
+++ b/gcc/graphite-scop-detection.c
@@ -81,7 +81,7 @@ public:
#define DEBUG_PRINT(args) do \
{ \
if (dump_file && (dump_flags & TDF_DETAILS)) { args; } \
- } while (0);
+ } while (0)
/* Pretty print to FILE all the SCoPs in DOT format and mark them with
different colors. If there are not enough colors, paint the
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-05 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-05 10:04 [PATCH 3/7] [graphite, committed] Remove semicolon after do {} while (0) in DEBUG_PRINT Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).