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/encoder/core/src/slice_multi_threading.cpp (1 of 10 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+1−3
@@ -353,7 +353,7 @@ int32_t RequestMtResource (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPara · 352 unmodified lines
353353 MT_TRACE_LOG ((*ppCtx), WELS_LOG_INFO, "encpEncCtx= 0x%p\n", (void*) (*ppCtx));
354354
355355 char name[SEM_NAME_MAX] = {0};
356− WELS_THREAD_ERROR_CODE err = 0;
356+ WELS_GCC_UNUSED WELS_THREAD_ERROR_CODE err = 0;
357357
358358 iIdx = 0;
359359 while (iIdx < iThreadNum) {
@@ -602,7 +602,6 @@ int32_t WriteSliceToFrameBs (sWelsEncCtx* pCtx, SLayerBSInfo* pLbi, uint8_t* pFr · 242 unmodified lines
602602 SWelsSliceBs* pSliceBs = &pCtx->pSliceBs[iSliceIdx];
603603 SNalUnitHeaderExt* pNalHdrExt = &pCtx->pCurDqLayer->sLayerInfo.sNalHeaderExt;
604604 uint8_t* pDst = pFrameBsBuffer;
605− int32_t pNalLen[2];
606605 const int32_t kiNalCnt = pSliceBs->iNalIndex;
607606 int32_t iNalIdx = 0;
608607 int32_t iNalSize = 0;
@@ -616,7 +615,6 @@ int32_t WriteSliceToFrameBs (sWelsEncCtx* pCtx, SLayerBSInfo* pLbi, uint8_t* pFr · 7 unmodified lines
616615 iNalSize = 0;
617616 iReturn = WelsEncodeNal (&pSliceBs->sNalList[iNalIdx], pNalHdrExt, pCtx->iFrameBsSize-kiWrittenLength-iSliceSize, pDst, &iNalSize);
618617 WELS_VERIFY_RETURN_IFNEQ(iReturn, ENC_RETURN_SUCCESS)
619− pNalLen[iNalIdx] = iNalSize;
620618 iSliceSize += iNalSize;
621619 pDst += iNalSize;
622620 pLbi->iNalLengthInByte[iNalBase + iNalIdx] = iNalSize;

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