History

Fix compiler warnings and remove dead code

Fix several -Werror=unused-variable and -Werror=unused-but-set-variable and removed dead code found with this warnings

Andoni Morales Alastruey committed 12 years ago

Commit ae60f1b1 parent 703c69d10 files · +1 −79Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 10 files). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+0−3
@@ -206,7 +206,6 @@ int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { · 205 unmodified lines
206206 int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSliceHeader pSh, PSps pSps,
207207 const bool kbIdrFlag) {
208208 PRefPicMarking const kpRefMarking = &pSh->sRefMarking;
209− PRefPic pRefPic = &pCtx->sRefPic;
210209 uint32_t uiCode;
211210 if (kbIdrFlag) {
212211 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
990989
991990 void UninitialDqLayersContext (PWelsDecoderContext pCtx) {
992991 int32_t i = 0;
993− int32_t j = 0;
994992
995993 do {
996994 PDqLayer pDq = pCtx->pDqLayersList[i];
@@ -1642,7 +1640,6 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 645 unmodified lines
16421640 uint8_t uiNalRefIdc = 0;
16431641 bool bFreshSliceAvailable =
16441642 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;
16461643
16471644 //update pCurDqLayer at the starting of AU decoding
16481645 if (pCtx->bInitialDqLayersMem) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t