Skip to content
Snippets Groups Projects
Commit 7edc3fed authored by Peter Maydell's avatar Peter Maydell Committed by Blue Swirl
Browse files

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: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 7ace252a
No related branches found
No related tags found
No related merge requests found
......@@ -1729,7 +1729,7 @@ cat > $TMPC <<EOF
int main(void) {
png_structp png_ptr;
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
return 0;
return png_ptr != 0;
}
EOF
if $pkg_config libpng --modversion >/dev/null 2>&1; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment