Add missign % (yyerror argument is a printf format)
This commit is contained in:
parent
d4f30a5920
commit
f92961fef2
4
external/bsd/bc/dist/bc.y
vendored
4
external/bsd/bc/dist/bc.y
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bc.y,v 1.1 2017/04/10 02:28:23 phil Exp $ */
|
||||
/* $NetBSD: bc.y,v 1.2 2017/04/10 15:13:04 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1991-1994, 1997, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
|
||||
@ -618,7 +618,7 @@ expression : named_expression ASSIGN_OP
|
||||
| expression '%' expression
|
||||
{
|
||||
if (($1 & EX_VOID) || ($3 & EX_VOID))
|
||||
yyerror ("void expression with %");
|
||||
yyerror ("void expression with %%");
|
||||
generate ("%");
|
||||
$$ = ($1 | $3) & ~EX_PAREN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user