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 | 52 | namespace WelsDec { |
| 53 | 53 | |
| 54 | 54 | int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { |
| 55 | − int32_t iPreQP = 0; | |
| 56 | − | |
| 57 | 55 | PDqLayer pCurLayer = pCtx->pCurDqLayer; |
| 58 | 56 | PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer; |
| 59 | 57 | PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader; |
| @@ -87,8 +85,6 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 27 unmodified lines | ||
| 87 | 85 | } |
| 88 | 86 | |
| 89 | 87 | do { |
| 90 | − iPreQP = pCurLayer->pLumaQp[pCurLayer->iMbXyIndex]; | |
| 91 | − | |
| 92 | 88 | if (WelsTargetMbConstruction (pCtx)) { |
| 93 | 89 | WelsLog (pCtx, WELS_LOG_WARNING, "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d\n", |
| 94 | 90 | pCurLayer->iMbX, pCurLayer->iMbY, pCurSlice->eSliceType); |