aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-07-30 15:09:12 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-07-30 15:09:41 +0100
commite517d757cc95245709090308e48f2ba2333c06f8 (patch)
tree8481cf8b838026db962b1a7a94a5e3e628a334e9
parentadfc2d6546246fafeebbd1e3ece2f5360ca74736 (diff)
downloadqemu-arm-e517d757cc95245709090308e48f2ba2333c06f8.tar.gz
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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 8a8ad27e20..b29cdd32df 100755
--- a/configure
+++ b/configure
@@ -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