From 6d17784b921190b24fedff274376615eec2e3733 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Wed, 7 Dec 2016 15:15:26 +0000 Subject: perly.c: silence a -Wempty-body warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit perly.c:350:21: warning: suggest braces around empty body in an ‘if’ statement [ -Wempty-body] --- perly.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perly.c') 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 -- cgit v1.2.1