From 830829ba56c568a1a526aa055f655adb80e74f22 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 13 Aug 2011 16:08:16 +0000 Subject: [PATCH] bison files, swallow warnings --- ChangeLog | 5 +++++ src/frontend/parse-bison.y | 1 + src/spicelib/parser/inpptree-parser.y | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 277155797..d03d4b700 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-13 Robert Larice + * src/frontend/parse-bison.y , + * src/spicelib/parser/inpptree-parser.y : + bison files, swallow warnings + 2011-08-12 Robert Larice * src/spicelib/devices/adms/admst/ngspice.xml , * src/spicelib/devices/adms/admst/ngspiceMakefile.am.xml : diff --git a/src/frontend/parse-bison.y b/src/frontend/parse-bison.y index 5b9e6417f..271534f88 100644 --- a/src/frontend/parse-bison.y +++ b/src/frontend/parse-bison.y @@ -101,6 +101,7 @@ %initial-action /* initialize yylval */ { $$.num = 0.0; + yylloc.start = yylloc.stop = NULL; }; %% diff --git a/src/spicelib/parser/inpptree-parser.y b/src/spicelib/parser/inpptree-parser.y index 341cf8879..5fcbbb553 100644 --- a/src/spicelib/parser/inpptree-parser.y +++ b/src/spicelib/parser/inpptree-parser.y @@ -53,6 +53,11 @@ %left '^' /* exponentiation */ %left NEG '!' /* negation--unary minus, and boolean not */ +%initial-action /* initialize yylval */ +{ + $$.num = 0.0; +}; + %% expression: