Message ID | 87c9e5e4-f250-a3a4-9e81-a64c223c42fe@mentor.com |
---|---|
State | New |
Headers | show |
Series | [1/7,libsanitizer,committed] Remove semicolon after do {} while (0) in macro body | expand |
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
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(-)