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

Justin Ross updated QPID-1154:
------------------------------

    Fix Version/s: 0.6
    
> Compile warning re casts in qpid/broker/SaslAuthenticator.cpp
> -------------------------------------------------------------
>
>                 Key: QPID-1154
>                 URL: https://issues.apache.org/jira/browse/QPID-1154
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: M3
>         Environment: Red Hat Enterprise Linux 4, g++ 3.4.6
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: qpid1154.diff
>
>
> Compiling C++ broker yields the following warning which the build settings 
> promote to an error:
> qpid/broker/SaslAuthenticator.cpp: In member function `void 
> qpid::broker::CyrusAuthenticator::processAuthenticationStep(int, const char*, 
> unsigned int)':
> qpid/broker/SaslAuthenticator.cpp:237: warning: cast from `const void*' to 
> `char*' discards qualifiers from pointer target type
> qpid/broker/SaslAuthenticator.cpp:239: warning: cast from `const void*' to 
> `char*' discards qualifiers from pointer target type
> The attached patch resolves this by using multiple casts: cast const void* to 
> const char *, then const_cast to discard const.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to