Fix several -Werror=unused-variable and -Werror=unused-but-set-variable and removed dead code found with this warnings
Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 10 files). Show all
Unified · Split
| @@ -52,8 +52,6 @@ · 51 unmodified lines | |||
| 52 | namespace WelsDec { | 52 | namespace WelsDec { |
| 53 | 53 | ||
| 54 | int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { | 54 | int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { |
| 55 | int32_t iPreQP = 0; | ||
| 56 | |||
| 57 | PDqLayer pCurLayer = pCtx->pCurDqLayer; | 55 | PDqLayer pCurLayer = pCtx->pCurDqLayer; |
| 58 | PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer; | 56 | PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer; |
| 59 | PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader; | 57 | PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader; |
| @@ -87,8 +85,6 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 27 unmodified lines | |||
| 87 | } | 85 | } |
| 88 | 86 | ||
| 89 | do { | 87 | do { |
| 90 | iPreQP = pCurLayer->pLumaQp[pCurLayer->iMbXyIndex]; | ||
| 91 | |||
| 92 | if (WelsTargetMbConstruction (pCtx)) { | 88 | if (WelsTargetMbConstruction (pCtx)) { |
| 93 | WelsLog (pCtx, WELS_LOG_WARNING, "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d\n", | 89 | WelsLog (pCtx, WELS_LOG_WARNING, "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d\n", |
| 94 | pCurLayer->iMbX, pCurLayer->iMbY, pCurSlice->eSliceType); | 90 | pCurLayer->iMbX, pCurLayer->iMbY, pCurSlice->eSliceType); |