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:44 UTC

[jira] Created: (QPID-1154) Compile warning re casts in qpid/broker/SaslAuthenticator.cpp

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.


[jira] Resolved: (QPID-1154) Compile warning re casts in qpid/broker/SaslAuthenticator.cpp

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ 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.


[jira] Updated: (QPID-1154) Compile warning re casts in qpid/broker/SaslAuthenticator.cpp

Posted by "Steve Huston (JIRA)" <qp...@incubator.apache.org>.
     [ 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.


[jira] Assigned: (QPID-1154) Compile warning re casts in qpid/broker/SaslAuthenticator.cpp

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ 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.