turbojpeg.c: Fix compiler warning w/ -DNO_GETENV

This commit is contained in:
DRC
2019-02-17 09:06:42 -06:00
parent 87ab3360d0
commit 500b5ecec3

View 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];