forked from pool/libavif
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 874528ff2d81e19e06ae923eef89fdecc6f82b67 Mon Sep 17 00:00:00 2001
|
|
From: Andreas Schneider <asn@cryptomilk.org>
|
|
Date: Wed, 11 Mar 2020 09:32:03 +0100
|
|
Subject: [PATCH] apps:avifpng: Remove unused variable hasAlpha
|
|
|
|
apps/shared/avifpng.c: In function 'avifPNGRead':
|
|
apps/shared/avifpng.c:80:14: error: variable 'hasAlpha' set but not used [-Werror=unused-but-set-variable]
|
|
avifBool hasAlpha = AVIF_FALSE;
|
|
^~~~~~~~
|
|
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
---
|
|
apps/shared/avifpng.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/apps/shared/avifpng.c b/apps/shared/avifpng.c
|
|
index a144680..b34e361 100644
|
|
--- a/apps/shared/avifpng.c
|
|
+++ b/apps/shared/avifpng.c
|
|
@@ -77,10 +77,8 @@ avifBool avifPNGRead(avifImage * avif, const char * inputFilename, avifPixelForm
|
|
png_set_expand_gray_1_2_4_to_8(png);
|
|
}
|
|
|
|
- avifBool hasAlpha = AVIF_FALSE;
|
|
if (png_get_valid(png, info, PNG_INFO_tRNS)) {
|
|
png_set_tRNS_to_alpha(png);
|
|
- hasAlpha = AVIF_TRUE;
|
|
}
|
|
|
|
if ((rawColorType == PNG_COLOR_TYPE_RGB) || (rawColorType == PNG_COLOR_TYPE_GRAY) || (rawColorType == PNG_COLOR_TYPE_PALETTE)) {
|