#880706 Warnings about statements that might fall through

Package:
bison++
Source:
bison++
Description:
Generate a parser in c or c++ from BNF notation
Submitter:
Bjarni Ingi Gislason
Date:
2017-11-04 02:15:07 UTC
Severity:
minor
#880706#5
Date:
2017-11-04 01:49:01 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

Compilation of "groff"

   * What was the outcome of this action?

Some warnings from the compiler.

  This should be fixed, or if correct, an explanation should be added to the
corresponding code.

###

  When "groff" (from git repository) was compiled, the compiler (gcc-7) issued the
following diagnostics:

/usr/share/bison++/bison.cc: In function 'int yyparse()':
/usr/share/bison++/bison.cc:616:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   yyvsp = yyvs;
   ~~~~~~^~~~~~
/usr/share/bison++/bison.cc:377:23: note: here
 #define YYLABEL(lb) } case lb: {
                       ^
/usr/share/bison++/bison.cc:624:1: note: in expansion of macro 'YYLABEL'
 YYLABEL(yynewstate)
 ^~~~~~~
/usr/share/bison++/bison.cc:815:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (yyn == 0)
   ^~
/usr/share/bison++/bison.cc:377:23: note: here
 #define YYLABEL(lb) } case lb: {
                       ^
/usr/share/bison++/bison.cc:819:1: note: in expansion of macro 'YYLABEL'
 YYLABEL(yyreduce)
 ^~~~~~~
/usr/share/bison++/bison.cc:981:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
   yystate = *--yyssp;
   ~~~~~~~~^~~~~~~~~~
/usr/share/bison++/bison.cc:377:23: note: here
 #define YYLABEL(lb) } case lb: {
                       ^
/usr/share/bison++/bison.cc:997:1: note: in expansion of macro 'YYLABEL'
 YYLABEL(yyerrhandle)