diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-11-25 18:07:46 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-11-27 08:25:38 +0100 |
commit | 9686b585e7189a75bd2cf8192ebc8296b60d0487 (patch) | |
tree | 0ba1dd542b87e394190067c5985dfe60be92641d /src/complain.h | |
parent | 4bddd3343905ec376c43906490e4dafdddaddb22 (diff) | |
download | bison-9686b585e7189a75bd2cf8192ebc8296b60d0487.tar.gz |
%nterm: do not accept character literals
Reported by Rici Lake.
http://lists.gnu.org/archive/html/bug-bison/2018-10/msg00000.html
* src/complain.h: Formatting change.
* src/parse-gram.y (id): Reject character literals used in a context
for non-terminals.
* tests/input.at (Invalid %nterm uses): Check that.
Diffstat (limited to 'src/complain.h')
-rw-r--r-- | src/complain.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/complain.h b/src/complain.h index 599afb97..41d0c566 100644 --- a/src/complain.h +++ b/src/complain.h @@ -78,8 +78,7 @@ void complain_init (void); typedef enum { - /**< Issue no warnings. */ - Wnone = 0, + Wnone = 0, /**< Issue no warnings. */ Wmidrule_values = 1 << warning_midrule_values, Wyacc = 1 << warning_yacc, |