From: Serhiy Storchaka Date: Fri, 3 Apr 2015 12:24:33 +0000 (+0300) Subject: Got rid of warnings "suggest braces around empty body in an ‘else’ statement" X-Git-Tag: v3.5.0a4~183 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8cd4d482f2f0e5954ee39abdc191cb2ab1cb4ce;p=thirdparty%2FPython%2Fcpython.git Got rid of warnings "suggest braces around empty body in an ‘else’ statement" in Parser/pgen.c. --- diff --git a/Parser/pgen.c b/Parser/pgen.c index b2f84709fc42..f3031aea0b6d 100644 --- a/Parser/pgen.c +++ b/Parser/pgen.c @@ -136,11 +136,12 @@ addnfa(nfagrammar *gr, char *name) static char REQNFMT[] = "metacompile: less than %d children\n"; -#define REQN(i, count) \ +#define REQN(i, count) do { \ if (i < count) { \ fprintf(stderr, REQNFMT, count); \ Py_FatalError("REQN"); \ - } else + } \ +} while (0) #else #define REQN(i, count) /* empty */