[prev in list] [next in list] [prev in thread] [next in thread]
List: mesa3d-dev
Subject: [Mesa-dev] [PATCH kmscube] texturator: Only define png variable when libpng is present
From: Fabio Estevam <festevam () gmail ! com>
Date: 2020-03-31 11:58:02
Message-ID: 20200331115802.24014-1-festevam () gmail ! com
[Download RAW message or body]
When libpng is not present the following build warning is seen:
../texturator.c:98:13: warning: 'png' defined but not used [-Wunused-variable]
static bool png;
Fix it by only defining the png variable when HAVE_LIBPNG is defined.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
texturator.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/texturator.c b/texturator.c
index 2675244..a450dfe 100644
--- a/texturator.c
+++ b/texturator.c
@@ -95,7 +95,9 @@ static int error_frames;
static int zoom = 1;
static bool full;
static bool stop;
+#ifdef HAVE_LIBPNG
static bool png;
+#endif
static GLenum target;
static struct size {
unsigned x, y, z;
--
2.17.1
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic