summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2020-03-31 08:50:42 -0300
committerFabio Estevam <festevam@gmail.com>2020-03-31 22:20:11 -0300
commitc60e990876588f8b2c48402d949d112bfa35d4b1 (patch)
tree471f90e350db13d5c0e9cd0957c0cae360a9976c
parent178cb5904f4f6c2482bceb4e3b59990fa6ed5878 (diff)
texturator: Only define png variable when libpng is present
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>
-rw-r--r--texturator.c2
1 files changed, 2 insertions, 0 deletions
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;