libstb_hal: Suppress implicit-fallthrough warnings from GCC 7

This commit is contained in:
GetAway
2019-06-14 21:03:10 +02:00
parent 9dc3e7b768
commit c8eda96620
6 changed files with 10 additions and 1 deletions

View File

@@ -555,8 +555,10 @@ void hdmi_cec::Receive()
break;
}
case CEC_OPCODE_USER_CONTROL_PRESSED: /* key pressed */
{
keypressed = true;
pressedkey = rxmessage.data[1];
} // fall through
case CEC_OPCODE_USER_CONTROL_RELEASE: /* key released */
{
long code = translateKey(pressedkey);

View File

@@ -85,6 +85,7 @@ int eDVBCICAManagerSession::doAction()
}
case stateFinal:
printf("[CI CA] stateFinal and action should not happen\n");
// fall through
default:
return 0;
}

View File

@@ -1339,6 +1339,7 @@ int eDVBCIContentControlManagerSession::doAction()
}
case stateFinal:
printf("stateFinal und action! kann doch garnicht sein ;)\n");
// fall through
default:
return 0;
}

View File

@@ -52,6 +52,7 @@ int eDVBCIDateTimeSession::doAction()
return 0;
case stateFinal:
printf("stateFinal und action! kann doch garnicht sein ;)\n");
// fall through
default:
return 0;
}

View File

@@ -179,11 +179,12 @@ eDVBCISession* eDVBCISession::createSession(eDVBCISlot *slot, const unsigned cha
printf("[CI SESS] CC MANAGER\n");
sessions[session_nb - 1] = new eDVBCIContentControlManagerSession(slot);
break;
}
} // fall through
case 0x00100041:
// session=new eDVBCIAuthSession;
printf("[CI SESS] AuthSession\n");
// break;
// fall through
case 0x00200041:
default:
printf("[CI SESS] unknown resource type %02x %02x %02x %02x\n", resource_identifier[0], resource_identifier[1], resource_identifier[2], resource_identifier[3]);

View File

@@ -137,6 +137,7 @@ static int writeData(WriterAVCallData_t *call)
case AV_CODEC_ID_PCM_S16LE:
case AV_CODEC_ID_PCM_U16LE:
LE = 1;
// fall through
case AV_CODEC_ID_PCM_S16BE:
case AV_CODEC_ID_PCM_U16BE:
width = depth = 16;
@@ -144,6 +145,7 @@ static int writeData(WriterAVCallData_t *call)
case AV_CODEC_ID_PCM_S24LE:
case AV_CODEC_ID_PCM_U24LE:
LE = 1;
// fall through
case AV_CODEC_ID_PCM_S24BE:
case AV_CODEC_ID_PCM_U24BE:
width = depth = 24;
@@ -151,6 +153,7 @@ static int writeData(WriterAVCallData_t *call)
case AV_CODEC_ID_PCM_S32LE:
case AV_CODEC_ID_PCM_U32LE:
LE = 1;
// fall through
case AV_CODEC_ID_PCM_S32BE:
case AV_CODEC_ID_PCM_U32BE:
width = depth = 32;