Got rid of warnings "suggest braces around empty body in an ‘else’ statement"
in Parser/pgen.c.
This commit is contained in:
parent
4deb950e2b
commit
a8cd4d482f
|
@ -136,11 +136,12 @@ addnfa(nfagrammar *gr, char *name)
|
||||||
|
|
||||||
static char REQNFMT[] = "metacompile: less than %d children\n";
|
static char REQNFMT[] = "metacompile: less than %d children\n";
|
||||||
|
|
||||||
#define REQN(i, count) \
|
#define REQN(i, count) do { \
|
||||||
if (i < count) { \
|
if (i < count) { \
|
||||||
fprintf(stderr, REQNFMT, count); \
|
fprintf(stderr, REQNFMT, count); \
|
||||||
Py_FatalError("REQN"); \
|
Py_FatalError("REQN"); \
|
||||||
} else
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define REQN(i, count) /* empty */
|
#define REQN(i, count) /* empty */
|
||||||
|
|
Loading…
Reference in New Issue