[
https://issues.apache.org/jira/browse/QPID-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gordon Sim resolved QPID-1154.
------------------------------
Resolution: Fixed
Applied on trunk
> 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
> 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.
-
You can reply to this email to add a comment to the issue online.