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/decode_slice.cpp (1 of 10 files). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+0−4
@@ -52,8 +52,6 @@ · 51 unmodified lines
52namespace WelsDec {52namespace WelsDec {
53 53
54int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {54int32_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);

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