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
5252 namespace WelsDec {
5353
5454 int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {
55− int32_t iPreQP = 0;
56−
5755 PDqLayer pCurLayer = pCtx->pCurDqLayer;
5856 PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer;
5957 PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader;
@@ -87,8 +85,6 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 27 unmodified lines
8785 }
8886
8987 do {
90− iPreQP = pCurLayer->pLumaQp[pCurLayer->iMbXyIndex];
91−
9288 if (WelsTargetMbConstruction (pCtx)) {
9389 WelsLog (pCtx, WELS_LOG_WARNING, "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d\n",
9490 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