[ 
https://issues.apache.org/jira/browse/THRIFT-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James E. King, III resolved THRIFT-3077.
----------------------------------------
    Resolution: Fixed

> 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: James E. King, III
>            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)

Reply via email to