From a8cd4d482f2f0e5954ee39abdc191cb2ab1cb4ce Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 3 Apr 2015 15:24:33 +0300 Subject: =?UTF-8?q?Got=20rid=20of=20warnings=20"suggest=20braces=20around?= =?UTF-8?q?=20empty=20body=20in=20an=20=E2=80=98else=E2=80=99=20statement"?= =?UTF-8?q?=20in=20Parser/pgen.c.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Parser/pgen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Parser/pgen.c b/Parser/pgen.c index b2f8470..f3031ae 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 */ -- cgit v0.12