summaryrefslogtreecommitdiff
path: root/src/libicalss/icalssyacc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libicalss/icalssyacc.c')
-rw-r--r--src/libicalss/icalssyacc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libicalss/icalssyacc.c b/src/libicalss/icalssyacc.c
index fdbd7ce7..495ebba0 100644
--- a/src/libicalss/icalssyacc.c
+++ b/src/libicalss/icalssyacc.c
@@ -1311,6 +1311,7 @@ yyparse ()
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
+ /* coverity[OVERRUN] */
if (yyss + yystacksize - 1 <= yyssp)
YYABORT;
}
@@ -1412,9 +1413,9 @@ yyreduce:
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
+ /* coverity[uninit_use] */
yyval = yyvsp[1-yylen];
-
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
@@ -1592,9 +1593,11 @@ yyerrorlab:
/* Pacify compilers like GCC when the user code never invokes
YYERROR and the label yyerrorlab therefore never appears in user
code. */
- if (/*CONSTCOND*/ 0)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunreachable-code"
+ if (/*CONSTCOND*/ 0)
goto yyerrorlab;
-
+#pragma clang diagnostic pop
/* Do not reclaim the symbols of the rule which action triggered
this YYERROR. */
YYPOPSTACK (yylen);