]> granicus.if.org Git - libjpeg-turbo/commitdiff
turbojpeg.c: Fix compiler warning w/ -DNO_GETENV
authorDRC <information@libjpeg-turbo.org>
Sun, 17 Feb 2019 15:06:42 +0000 (09:06 -0600)
committerDRC <information@libjpeg-turbo.org>
Sun, 17 Feb 2019 15:06:42 +0000 (09:06 -0600)
turbojpeg.c

index b3caa0d450bef4364326674659a620f60116ccdf..f57f981a032b5c16260e7dbb481ccadf506e2e54 100644 (file)
@@ -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];