You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2015/04/07 23:26:12 UTC
[jira] [Updated] (THRIFT-3077) C++ TFileTransport ignores return
code from ftruncate
[ https://issues.apache.org/jira/browse/THRIFT-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier updated THRIFT-3077:
--------------------------------
Fix Version/s: 0.9.3
> C++ TFileTransport ignores return code from ftruncate
> -----------------------------------------------------
>
> Key: THRIFT-3077
> URL: https://issues.apache.org/jira/browse/THRIFT-3077
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 0.9.3
> Reporter: James E. King, III
> Assignee: Roger Meier
> Priority: Minor
> Fix For: 0.9.3
>
>
> If ftruncate fails, nobody will know...
> {code}src/thrift/transport/TFileTransport.cpp: In member function 'void apache::thrift::transport::TFileTransport::writerThread()':
> src/thrift/transport/TFileTransport.cpp:316:34: warning: ignoring return value of 'int ftruncate(int, __off_t)', declared with attribute warn_unused_result [-Wunused-result]
> THRIFT_FTRUNCATE(fd_, offset_);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)