Changeset: 6fd5a6b44170 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6fd5a6b44170 Modified Files: gdk/gdk_posix.c Branch: Feb2013 Log Message:
Gcc wants the result of truncate to be checked. diffs (13 lines): diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c --- a/gdk/gdk_posix.c +++ b/gdk/gdk_posix.c @@ -414,7 +414,8 @@ MT_mremap(const char *path, int mode, vo if (munmap((char *) old_address + new_size, old_size - new_size) < 0) return NULL; - truncate(path, (off_t) new_size); + if (truncate(path, (off_t) new_size) < 0) + fprintf(stderr, "#MT_mremap(%s): truncate failed\n", path); #ifdef MMAP_DEBUG fprintf(stderr, "MT_mremap(%s,"PTRFMT","SZFMT","SZFMT") -> shrinking\n", path?path:"NULL", PTRFMTCAST old_address, old_size, new_size); #endif _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list