[x265] [PATCH 1 of 4] intrapred: Fix unused variables

ShinYee Chung shinyee at multicorewareinc.com
Wed Jun 19 18:25:17 CEST 2013


# HG changeset patch
# User ShinYee Chung <shinyee at multicorewareinc.com>
# Date 1371656481 -28800
# Node ID d09653f00911cea0b1b725eeb35b9297b20c0ba1
# Parent  ab93e542c0a46699bdd937103e683ba65a26959e
intrapred: Fix unused variables.

Sample compile errors in Linux64/GCC 4.8.1:

$HEVC/source/common/vec/intrapred.inc:4677:13: error: statement has no effect [-Werror=unused-value]
     (pLeft1);
             ^
$HEVC/source/common/vec/intrapred.inc:4678:14: error: statement has no effect [-Werror=unused-value]
     (pAbove1);
              ^

diff -r ab93e542c0a4 -r d09653f00911 source/common/IntraPred.cpp
--- a/source/common/IntraPred.cpp	Wed Jun 19 17:22:46 2013 +0530
+++ b/source/common/IntraPred.cpp	Wed Jun 19 23:41:21 2013 +0800
@@ -261,8 +261,8 @@
     int iMode;
 
     // avoid warning
-    (pLeft1);
-    (pAbove1);
+    (void)pLeft1;
+    (void)pAbove1;
 
     for( iMode = 2; iMode <= 34; iMode++ )
     {
diff -r ab93e542c0a4 -r d09653f00911 source/common/vec/intrapred.inc
--- a/source/common/vec/intrapred.inc	Wed Jun 19 17:22:46 2013 +0530
+++ b/source/common/vec/intrapred.inc	Wed Jun 19 23:41:21 2013 +0800
@@ -4674,8 +4674,8 @@
     int iMode;
 
     // avoid warning
-    (pLeft1);
-    (pAbove1);
+    (void)pLeft1;
+    (void)pAbove1;
 
     for( iMode = 2; iMode <= 34; iMode++ )
     {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xhevc.hg-1.patch
Type: text/x-patch
Size: 1314 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130620/e4e7acbe/attachment.bin>


More information about the x265-devel mailing list