FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Got rid of warnings "suggest braces around empty body in an ‘else’ st… · pythoncapi/cpython@a8cd4d4 · GitHub

forked from python/cpython

Commit a8cd4d4

Browse files
Got rid of warnings "suggest braces around empty body in an ‘else’ statement"
in Parser/pgen.c.
1 parent 4deb950 commit a8cd4d4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Parser/pgen.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ addnfa(nfagrammar *gr, char *name)
136136

137137
static char REQNFMT[] = "metacompile: less than %d children\n";
138138

139-
#define REQN(i, count) \
139+
#define REQN(i, count) do { \
140140
if (i < count) { \
141141
fprintf(stderr, REQNFMT, count); \
142142
Py_FatalError("REQN"); \
143-
} else
143+
} \
144+
} while (0)
144145

145146
#else
146147
#define REQN(i, count) /* empty */

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL