configure: Fix compile warning in PNG test
Fix compile warning (variable 'png_ptr' set but not used) in the PNG detection test code. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
7ace252a6a
commit
7edc3fed5e
|
@ -1729,7 +1729,7 @@ cat > $TMPC <<EOF
|
||||||
int main(void) {
|
int main(void) {
|
||||||
png_structp png_ptr;
|
png_structp png_ptr;
|
||||||
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
|
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
|
||||||
return 0;
|
return png_ptr != 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
if $pkg_config libpng --modversion >/dev/null 2>&1; then
|
if $pkg_config libpng --modversion >/dev/null 2>&1; then
|
||||||
|
|
Loading…
Reference in New Issue