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/decoder_core.cpp (1 of 10 files). Show all
Unified · Split
| @@ -206,7 +206,6 @@ int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { · 205 unmodified lines | |||
| 206 | int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSliceHeader pSh, PSps pSps, | 206 | int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSliceHeader pSh, PSps pSps, |
| 207 | const bool kbIdrFlag) { | 207 | const bool kbIdrFlag) { |
| 208 | PRefPicMarking const kpRefMarking = &pSh->sRefMarking; | 208 | PRefPicMarking const kpRefMarking = &pSh->sRefMarking; |
| 209 | PRefPic pRefPic = &pCtx->sRefPic; | ||
| 210 | uint32_t uiCode; | 209 | uint32_t uiCode; |
| 211 | if (kbIdrFlag) { | 210 | if (kbIdrFlag) { |
| 212 | WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //no_output_of_prior_pics_flag | 211 | WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //no_output_of_prior_pics_flag |
| @@ -990,7 +989,6 @@ int32_t InitialDqLayersContext (PWelsDecoderContext pCtx, const int32_t kiMaxWid · 777 unmodified lines | |||
| 990 | 989 | ||
| 991 | void UninitialDqLayersContext (PWelsDecoderContext pCtx) { | 990 | void UninitialDqLayersContext (PWelsDecoderContext pCtx) { |
| 992 | int32_t i = 0; | 991 | int32_t i = 0; |
| 993 | int32_t j = 0; | ||
| 994 | 992 | ||
| 995 | do { | 993 | do { |
| 996 | PDqLayer pDq = pCtx->pDqLayersList[i]; | 994 | PDqLayer pDq = pCtx->pDqLayersList[i]; |
| @@ -1642,7 +1640,6 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 645 unmodified lines | |||
| 1642 | uint8_t uiNalRefIdc = 0; | 1640 | uint8_t uiNalRefIdc = 0; |
| 1643 | bool bFreshSliceAvailable = | 1641 | bool bFreshSliceAvailable = |
| 1644 | true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/2008 | 1642 | true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/2008 |
| 1645 | PPicture pStoreBasePic = NULL; | ||
| 1646 | 1643 | ||
| 1647 | //update pCurDqLayer at the starting of AU decoding | 1644 | //update pCurDqLayer at the starting of AU decoding |
| 1648 | if (pCtx->bInitialDqLayersMem) { | 1645 | if (pCtx->bInitialDqLayersMem) { |