[x265] [PATCH] TEncGOP: Fix compile error due to unused variable

ShinYee Chung shinyee at multicorewareinc.com
Thu Jun 20 06:56:17 CEST 2013


# HG changeset patch
# User ShinYee Chung <shinyee at multicorewareinc.com>
# Date 1371704064 -28800
# Node ID 3d12c1f671f227a89414eaabc91db65da73a096f
# Parent  43a210488e02801ea2180d03bc43193638f41639
TEncGOP: Fix compile error due to unused variable.

error: variable ‘iTimeOffset’ set but not used [-Werror=unused-but-set-variable]
         Int iTimeOffset = m_pcCfg->getGOPEntry(iGOPid).m_POC;

diff -r 43a210488e02 -r 3d12c1f671f2 source/Lib/TLibEncoder/TEncGOP.cpp
--- a/source/Lib/TLibEncoder/TEncGOP.cpp	Wed Jun 19 22:26:16 2013 -0500
+++ b/source/Lib/TLibEncoder/TEncGOP.cpp	Thu Jun 20 12:54:24 2013 +0800
@@ -278,6 +278,7 @@
         /////////////////////////////////////////////////////////////////////////////////////////////////// Initial to start encoding
         Int pocCurr = iPOCLast - iNumPicRcvd + m_pcCfg->getGOPEntry(iGOPid).m_POC;
         Int iTimeOffset = m_pcCfg->getGOPEntry(iGOPid).m_POC;
+        (void)iTimeOffset; // TODO: Avoid compile warning [-Werror=unused-but-set-variable].
         if (iPOCLast == 0)
         {
             pocCurr = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xhevc.hg.patch
Type: text/x-patch
Size: 1078 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130620/561ca54d/attachment.bin>


More information about the x265-devel mailing list