summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-05-16 16:58:02 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-05-16 16:58:02 +0000
commit75ec1fedc7532b4743bedc1ec4881d90b7d71452 (patch)
treefe00077f710f0f357548deb62f9c82d63bfb270b /ext/soap/php_sdl.c
parent27dd44db9577f09864cb231b0e1e58efe9a14230 (diff)
downloadphp-git-75ec1fedc7532b4743bedc1ec4881d90b7d71452.tar.gz
Add php_ignore_value() macro to suppress unused return value warnings
from gcc. There are times when we really don't care about the return value and this will cleanly tell gcc.
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 580990ba51..f1c4b7109e 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -2339,7 +2339,7 @@ static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr s
}
}
- write(f, buf.c, buf.len);
+ php_ignore_value(write(f, buf.c, buf.len));
close(f);
smart_str_free(&buf);
zend_hash_destroy(&tmp_functions);