You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2013/04/23 22:26:53 UTC

[2/2] git commit: TS-1844: fix unused result warning

TS-1844: fix unused result warning


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/af7057e3
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/af7057e3
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/af7057e3

Branch: refs/heads/master
Commit: af7057e32a34685643b72012b023e98d66914aa3
Parents: 833dc55
Author: James Peach <jp...@apache.org>
Authored: Tue Apr 23 13:23:36 2013 -0700
Committer: James Peach <jp...@apache.org>
Committed: Tue Apr 23 13:26:28 2013 -0700

----------------------------------------------------------------------
 lib/ts/ink_file.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/af7057e3/lib/ts/ink_file.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_file.cc b/lib/ts/ink_file.cc
index 2a5e691..f3e64e8 100644
--- a/lib/ts/ink_file.cc
+++ b/lib/ts/ink_file.cc
@@ -337,7 +337,7 @@ int
 ink_file_fd_zerofill(int fd, off_t size)
 {
   // Clear the file by truncating it to zero and then to the desired size.
-  ftruncate(fd, 0);
+  ATS_UNUSED_RETURN(ftruncate(fd, 0));
 
 #if TS_HAS_POSIX_FALLOCATE
   return posix_fallocate(fd, 0, size);