Silence pedantic GCC6 code formatting warnings
Apparently it's "misleading" to put two self-contained if statements on a single line. Who knew?
This commit is contained in:
@@ -570,7 +570,8 @@ static tjhandle _tjInitCompress(tjinstance *this)
|
||||
if(setjmp(this->jerr.setjmp_buffer))
|
||||
{
|
||||
/* If we get here, the JPEG code has signaled an error. */
|
||||
if(this) free(this); return NULL;
|
||||
if(this) free(this);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jpeg_create_compress(&this->cinfo);
|
||||
@@ -1231,7 +1232,8 @@ static tjhandle _tjInitDecompress(tjinstance *this)
|
||||
if(setjmp(this->jerr.setjmp_buffer))
|
||||
{
|
||||
/* If we get here, the JPEG code has signaled an error. */
|
||||
if(this) free(this); return NULL;
|
||||
if(this) free(this);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jpeg_create_decompress(&this->dinfo);
|
||||
|
||||
Reference in New Issue
Block a user