In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/6d17784b921190b24fedff274376615eec2e3733?hp=5247d03dd8125594173a7d27bc27bcc08b01b7b1>

- Log -----------------------------------------------------------------
commit 6d17784b921190b24fedff274376615eec2e3733
Author: David Mitchell <[email protected]>
Date:   Wed Dec 7 15:15:26 2016 +0000

    perly.c: silence a -Wempty-body warning
    
    perly.c:350:21: warning: suggest braces around empty body in an ‘if’ 
statement [
    -Wempty-body]
-----------------------------------------------------------------------

Summary of changes:
 perly.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/perly.c b/perly.c
index 5d1519f262..8fc1913511 100644
--- 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

--
Perl5 Master Repository

Reply via email to