[libpng17] Removed or marked PNG_UNUSED some harmless "dead assignments"

reported by clang scan-build.
[libpng17] Avoid a scan-build warning in pngtest.c