From: DRC Date: Sun, 17 Feb 2019 15:06:42 +0000 (-0600) Subject: turbojpeg.c: Fix compiler warning w/ -DNO_GETENV X-Git-Tag: 2.0.3~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=500b5ecec3f2be9991b93bf41d06d05697429661;p=libjpeg-turbo turbojpeg.c: Fix compiler warning w/ -DNO_GETENV --- diff --git a/turbojpeg.c b/turbojpeg.c index b3caa0d..f57f981 100644 --- a/turbojpeg.c +++ b/turbojpeg.c @@ -237,7 +237,9 @@ static int setCompDefaults(struct jpeg_compress_struct *cinfo, int pixelFormat, int subsamp, int jpegQual, int flags) { int retval = 0; +#ifndef NO_GETENV char *env = NULL; +#endif cinfo->in_color_space = pf2cs[pixelFormat]; cinfo->input_components = tjPixelSize[pixelFormat];