diff --git a/ChangeLog b/ChangeLog index 540637dc6..bd81fa436 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-02-11 Robert Larice + * src/frontend/parse-bison.y : + silence a `bcheck' warning `read from uninitialized memory' + yylval in the bison generated parser is copied, + even when the value is actually unused + 2011-02-11 Robert Larice * src/spicelib/devices/vsrc/vsrcask.c : add a missing `ask' function for VSRC_TRRANDOM diff --git a/src/frontend/parse-bison.y b/src/frontend/parse-bison.y index 6c74c274b..5b9e6417f 100644 --- a/src/frontend/parse-bison.y +++ b/src/frontend/parse-bison.y @@ -98,6 +98,11 @@ %left '[' ']' %left TOK_LRANGE TOK_RRANGE +%initial-action /* initialize yylval */ +{ + $$.num = 0.0; +}; + %% /*