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

index 7ab49c01507efba7d79459bb7084e3adda2bbc3a..330a0040bbafe724e682622dfc1ae5802a3cb5be 100644 (file)
@@ -175,7 +175,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
 
        switch(pixelFormat)
        {