aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannis Guyon <yguyon@google.com>2023-10-02 15:03:27 +0200
committerlibyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-03 15:19:25 +0000
commita3b9c36eb96ee815c938716d7e9703604938f904 (patch)
tree3c85310b13bab099a24cdd1be927eb8d2d060881
parent3aae5c7fb15452a2c708db8353041f55dc15e116 (diff)
downloadlibyuv-a3b9c36eb96ee815c938716d7e9703604938f904.tar.gz
Fix unused arg errors in ScalePlane*() in Release
src_width parameter is used for assertions and unused with NDEBUG. Fix the warning treated as an error when -Wall -Wextra -Werror is used to build that part of the code. BUG=libyuv:967 Change-Id: I4c02ab013e8e2684b3bed5ce9693e1493d7751b9 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4905033 Reviewed-by: Wan-Teh Chang <wtc@google.com> Commit-Queue: Wan-Teh Chang <wtc@google.com>
-rw-r--r--source/scale.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/scale.cc b/source/scale.cc
index 43d973af..a8c70949 100644
--- a/source/scale.cc
+++ b/source/scale.cc
@@ -1479,6 +1479,7 @@ static void ScalePlaneUp2_Linear(int src_width,
int y;
int dy;
+ (void)src_width;
// This function can only scale up by 2 times horizontally.
assert(src_width == ((dst_width + 1) / 2));
@@ -1542,6 +1543,7 @@ static void ScalePlaneUp2_Bilinear(int src_width,
ScaleRowUp2_Bilinear_Any_C;
int x;
+ (void)src_width;
// This function can only scale up by 2 times.
assert(src_width == ((dst_width + 1) / 2));
assert(src_height == ((dst_height + 1) / 2));
@@ -1608,6 +1610,7 @@ static void ScalePlaneUp2_12_Linear(int src_width,
int y;
int dy;
+ (void)src_width;
// This function can only scale up by 2 times horizontally.
assert(src_width == ((dst_width + 1) / 2));
@@ -1661,6 +1664,7 @@ static void ScalePlaneUp2_12_Bilinear(int src_width,
ScaleRowUp2_Bilinear_16_Any_C;
int x;
+ (void)src_width;
// This function can only scale up by 2 times.
assert(src_width == ((dst_width + 1) / 2));
assert(src_height == ((dst_height + 1) / 2));
@@ -1709,6 +1713,7 @@ static void ScalePlaneUp2_16_Linear(int src_width,
int y;
int dy;
+ (void)src_width;
// This function can only scale up by 2 times horizontally.
assert(src_width == ((dst_width + 1) / 2));
@@ -1757,6 +1762,7 @@ static void ScalePlaneUp2_16_Bilinear(int src_width,
ScaleRowUp2_Bilinear_16_Any_C;
int x;
+ (void)src_width;
// This function can only scale up by 2 times.
assert(src_width == ((dst_width + 1) / 2));
assert(src_height == ((dst_height + 1) / 2));