summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.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
commit22b689a3f9c0babc1b6f29bdfd4722cf74d2ff6e (patch)
tree195939fbd3d68894903d7fca118fd97826187ae1 /ext/session/mod_files.c
parente0df4e3dba7c4ab92442b9e82c1de01fdbaa3cce (diff)
downloadphp-git-22b689a3f9c0babc1b6f29bdfd4722cf74d2ff6e.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/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 0627414b7a..c3c35093c3 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -390,7 +390,7 @@ PS_WRITE_FUNC(files)
/* Truncate file if the amount of new data is smaller than the existing data set. */
if (vallen < (int)data->st_size) {
- ftruncate(data->fd, 0);
+ php_ignore_value(ftruncate(data->fd, 0));
}
#if defined(HAVE_PWRITE)