[x265] [PATCH] intrapred: Fix unused variables

ShinYee Chung shinyee at multicorewareinc.com
Wed Jun 19 19:47:40 CEST 2013


# HG changeset patch
# User ShinYee Chung <shinyee at multicorewareinc.com>
# Date 1371664007 -28800
# Node ID bb78ee5841f2f903bb0376876712b5c7b542243c
# Parent  8039746d5cb05d4104f37f02b9d9dfcc5d36944a
intrapred: Fix unused variables.

error: statement has no effect [-Werror=unused-value]

diff -r 8039746d5cb0 -r bb78ee5841f2 source/common/vec/intrapred.inc
--- a/source/common/vec/intrapred.inc	Wed Jun 19 12:21:05 2013 -0500
+++ b/source/common/vec/intrapred.inc	Thu Jun 20 01:46:47 2013 +0800
@@ -4763,8 +4763,8 @@
 void xPredIntraAngs4(pixel *pDst0, pixel *pAbove0, pixel *pLeft0, pixel *pAbove1, pixel *pLeft1, bool bLuma)
 {
     // avoid warning
-    (pLeft1);
-    (pAbove1);
+    (void)pLeft1;
+    (void)pAbove1;
 
     pixel (*pDstN)[4*4] = (pixel(*)[4*4])pDst0;
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xhevc.hg.patch
Type: text/x-patch
Size: 776 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130620/09a701a1/attachment.bin>


More information about the x265-devel mailing list