aboutsummaryrefslogtreecommitdiffstats
path: root/pngset.c
diff options
context:
space:
mode:
authorcarvsdriver <carvsdriver@gmail.com>2013-06-27 13:11:21 -0400
committerMike Grissom <mikeyman77@gmail.com>2013-07-13 10:34:41 -0700
commit1c1a497260ca86a5907469e7218e0faef22f3873 (patch)
tree1559e4dfac812a038e8d050d447d42d8a783b4bf /pngset.c
parent41e4a032ef9f599ea597dcdff1797f0ea49bdd97 (diff)
downloadexternal_libpng-1c1a497260ca86a5907469e7218e0faef22f3873.zip
external_libpng-1c1a497260ca86a5907469e7218e0faef22f3873.tar.gz
external_libpng-1c1a497260ca86a5907469e7218e0faef22f3873.tar.bz2
external: libpng: fix numerous compiler warnings
Clean up the code for unused variables to handle them a bit more elegantly. Change-Id: I8b01c27673128719dad74276599d5a286c4dd412
Diffstat (limited to 'pngset.c')
-rw-r--r--pngset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pngset.c b/pngset.c
index c9ab8f6..168edb1 100644
--- a/pngset.c
+++ b/pngset.c
@@ -1184,7 +1184,7 @@ png_set_asm_flags (png_structp png_ptr, png_uint_32 asm_flags)
/* Obsolete as of libpng-1.2.20 and will be removed from libpng-1.4.0 */
if (png_ptr != NULL)
png_ptr->asm_flags = 0;
- asm_flags = asm_flags; /* Quiet the compiler */
+ UNUSED(asm_flags); /* Quiet the compiler */
}
/* This function was added to libpng 1.2.0 */
@@ -1197,8 +1197,8 @@ png_set_mmx_thresholds (png_structp png_ptr,
if (png_ptr == NULL)
return;
/* Quiet the compiler */
- mmx_bitdepth_threshold = mmx_bitdepth_threshold;
- mmx_rowbytes_threshold = mmx_rowbytes_threshold;
+ UNUSED(mmx_bitdepth_threshold);
+ UNUSED(mmx_rowbytes_threshold);
}
#endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */