Skip to content

Commit

Permalink
Add a default value for yyformat for [coverity CID 10838]
Browse files Browse the repository at this point in the history
  • Loading branch information
dajobe committed Apr 19, 2014
1 parent a798af8 commit e2efe02
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/fix-bison
Expand Up @@ -42,6 +42,15 @@ while(<>) {
next;
}

if(m%^\# undef YYCASE_$%) {
# Add a default value for yyformat for coverity CID 10838
my $line=$_;
print qq{ default: yyformat = YY_("syntax error");\n};
$line_offset++; # extra line
print $line;
next;
}

# Suppress warnings about empty declarations
s/(^static int .*_init_globals.*);$/$1/;

Expand Down

0 comments on commit e2efe02

Please sign in to comment.