[
https://issues.apache.org/jira/browse/THRIFT-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487611#comment-14487611
]
ASF GitHub Bot commented on THRIFT-3077:
----------------------------------------
Github user jeking3 commented on the pull request:
https://github.com/apache/thrift/pull/426#issuecomment-91281448
Closing as the code has been merged into the project.
> 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)