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 <feste...@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