perly.c: silence a -Wempty-body warning blead
authorDavid Mitchell <davem@iabyn.com>
Wed, 7 Dec 2016 15:15:26 +0000 (15:15 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Dec 2016 15:15:26 +0000 (15:15 +0000)
perly.c:350:21: warning: suggest braces around empty body in an ‘if’ statement [
-Wempty-body]

perly.c

diff --git a/perly.c b/perly.c
index 5d1519f..8fc1913 100644 (file)
--- a/perly.c
+++ b/perly.c
@@ -346,8 +346,9 @@ Perl_yyparse (pTHX_ int gramtype)
                 YYDPRINTF ((Perl_debug_log, "Reading a token:\n"));
                 parser->yychar = yylex();
                 assert(parser->yychar >= 0);
-                if (parser->yychar == YYEOF)
+                if (parser->yychar == YYEOF) {
                     YYDPRINTF ((Perl_debug_log, "Now at end of input.\n"));
+                }
                 /* perly.tab is shipped based on an ASCII system, so need
                  * to index it with characters translated to ASCII.
                  * Although it's not designed for this purpose, we can use