James E. King, III created THRIFT-3077:
------------------------------------------

             Summary: 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
            Priority: Minor


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