mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
add comments to suppres -Wimplicit-fallthrough warnings
This commit is contained in:
committed by
Jacek Jendrzej
parent
9e2a7d7f79
commit
971f3703a6
@@ -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;
|
||||
|
Reference in New Issue
Block a user