add comments to suppres -Wimplicit-fallthrough warnings

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0ea72b9d51
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-09-25 (Mon, 25 Sep 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-09-25 11:25:50 +02:00
committed by vanhofen
parent d45976cebf
commit a4040cbcb9
12 changed files with 19 additions and 2 deletions

View File

@@ -820,6 +820,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
switch ( rv ) {
case menu_return::RETURN_EXIT_ALL:
retval = menu_return::RETURN_EXIT_ALL;
/* fall through */
case menu_return::RETURN_EXIT:
msg = CRCInput::RC_timeout;
break;
@@ -911,6 +912,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
break;
case CRCInput::RC_up:
dir = -1;
/* fall through */
default: /* fallthrough or RC_down => dir = 1 */
pos += dir;
if (pos < 0 || pos >= (int)items.size())
@@ -979,6 +981,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
switch ( rv ) {
case menu_return::RETURN_EXIT_ALL:
retval = menu_return::RETURN_EXIT_ALL;
/* fall through */
case menu_return::RETURN_EXIT:
msg = CRCInput::RC_timeout;
break;