Message ID | 93a42f29-2019-7fb9-2ef6-486c3fcdc4c5@mentor.com |
---|---|
State | New |
Headers | show |
Series | [1/7,libsanitizer,committed] Remove semicolon after do {} while (0) in macro body | expand |
diff --git a/libquadmath/printf/gmp-impl.h b/libquadmath/printf/gmp-impl.h index 969574c..94d88ef 100644 --- a/libquadmath/printf/gmp-impl.h +++ b/libquadmath/printf/gmp-impl.h @@ -91,7 +91,7 @@ typedef unsigned int UHWtype; impn_mul_n_basecase (prodp, up, vp, size); \ else \ impn_mul_n (prodp, up, vp, size, tspace); \ - } while (0); + } while (0) #define __MPN(x) __quadmath_mpn_##x
Hi, this patch removes a semicolon after "do {} while (0)" in MPN_MUL_N_RECURSE. 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 * printf/gmp-impl.h (MPN_MUL_N_RECURSE): Remove semicolon after "do {} while (0)". Signed-off-by: Tom de Vries <tom@codesourcery.com> --- libquadmath/printf/gmp-impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)