mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Got rid of warnings "suggest braces around empty body in an ‘else’ statement"
in Parser/pgen.c.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user