You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (JIRA)" <qp...@incubator.apache.org> on 2008/07/25 10:47:31 UTC

[jira] Assigned: (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 ]

Gordon Sim reassigned QPID-1154:
--------------------------------

    Assignee: Gordon Sim

> 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.