[libpng12] Quiet unused variable warnings from clang by porting PNG_UNUSED()

from libpng-1.4.6.
This commit is contained in:
Glenn Randers-Pehrson
2014-02-03 09:41:50 -06:00
parent 0cbe85bcfd
commit ae48296140
13 changed files with 81 additions and 55 deletions

View File

@@ -1586,8 +1586,8 @@ png_write_png(png_structp png_ptr, png_infop info_ptr,
/* It is REQUIRED to call this to finish writing the rest of the file */
png_write_end(png_ptr, info_ptr);
transforms = transforms; /* Quiet compiler warnings */
params = params;
PNG_UNUSED(transforms) /* Quiet compiler warnings */
PNG_UNUSED(params)
}
#endif
#endif /* PNG_WRITE_SUPPORTED */