add comments to suppres -Wimplicit-fallthrough warnings

This commit is contained in:
Stefan Seyfried
2017-09-23 18:11:47 +02:00
committed by Jacek Jendrzej
parent 9e2a7d7f79
commit 971f3703a6
12 changed files with 19 additions and 2 deletions

View File

@@ -799,6 +799,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;
@@ -890,6 +891,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())
@@ -950,6 +952,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;