You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Steve Huston (JIRA)" <qp...@incubator.apache.org> on 2008/06/26 23:35:45 UTC
[jira] Updated: (QPID-1154) Compile warning re casts in
qpid/broker/SaslAuthenticator.cpp
[ https://issues.apache.org/jira/browse/QPID-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Huston updated QPID-1154:
-------------------------------
Attachment: qpid1154.diff
Patch the resolve this issue.
> 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
> 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.