Uninitialize processorFactory_ member in TServer.h
--------------------------------------------------

                 Key: THRIFT-1491
                 URL: https://issues.apache.org/jira/browse/THRIFT-1491
             Project: Thrift
          Issue Type: Bug
          Components: C++ - Library
    Affects Versions: 0.9
         Environment: clang 3.0
            Reporter: Ben Frederickson
            Priority: Trivial
             Fix For: 0.9


In lib/cpp/src/server/TServer.h there are two instances that the member 
'processorFactory_' is initialized from itself.  This causes the following 
warnings in clang 3.0

/usr/local/include/thrift/server/TServer.h:147:23: error: field is 
uninitialized when used here
      [-Werror,-Wuninitialized]
    processorFactory_(processorFactory_) {
                      ^
/usr/local/include/thrift/server/TServer.h:230:23: error: field is 
uninitialized when used here
      [-Werror,-Wuninitialized]
    processorFactory_(processorFactory_),
                      ^


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to