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:43:45 UTC

[jira] Created: (QPID-1155) Compile warning re casts in cpp/src/tests/InlineVector.cpp

Compile warning re casts in cpp/src/tests/InlineVector.cpp
----------------------------------------------------------

                 Key: QPID-1155
                 URL: https://issues.apache.org/jira/browse/QPID-1155
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: M3
         Environment: Red Hat Enterprise Linux 4, g++ 3.4.6
            Reporter: Steve Huston
            Priority: Minor


There's a compile warning in cpp/src/tests/InlineVector.cpp that build settings convert to an error:

InlineVector.cpp: In function `bool InlineVectorTestSuite::isInline(const InlineVectorTestSuite::Vec&)':
InlineVector.cpp:33: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
InlineVector.cpp:33: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
InlineVector.cpp:34: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
InlineVector.cpp:34: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type

The attached patch fixes this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1155) Compile warning re casts in cpp/src/tests/InlineVector.cpp

Posted by "Steve Huston (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Huston updated QPID-1155:
-------------------------------

    Attachment: qpid1155.diff

Patch to resolve this issue.

> Compile warning re casts in cpp/src/tests/InlineVector.cpp
> ----------------------------------------------------------
>
>                 Key: QPID-1155
>                 URL: https://issues.apache.org/jira/browse/QPID-1155
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: M3
>         Environment: Red Hat Enterprise Linux 4, g++ 3.4.6
>            Reporter: Steve Huston
>            Priority: Minor
>         Attachments: qpid1155.diff
>
>
> There's a compile warning in cpp/src/tests/InlineVector.cpp that build settings convert to an error:
> InlineVector.cpp: In function `bool InlineVectorTestSuite::isInline(const InlineVectorTestSuite::Vec&)':
> InlineVector.cpp:33: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:33: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:34: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:34: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
> The attached patch fixes this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (QPID-1155) Compile warning re casts in cpp/src/tests/InlineVector.cpp

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim resolved QPID-1155.
------------------------------

    Resolution: Fixed

Applied on trunk

> Compile warning re casts in cpp/src/tests/InlineVector.cpp
> ----------------------------------------------------------
>
>                 Key: QPID-1155
>                 URL: https://issues.apache.org/jira/browse/QPID-1155
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: M3
>         Environment: Red Hat Enterprise Linux 4, g++ 3.4.6
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>            Priority: Minor
>         Attachments: qpid1155.diff
>
>
> There's a compile warning in cpp/src/tests/InlineVector.cpp that build settings convert to an error:
> InlineVector.cpp: In function `bool InlineVectorTestSuite::isInline(const InlineVectorTestSuite::Vec&)':
> InlineVector.cpp:33: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:33: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:34: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:34: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
> The attached patch fixes this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (QPID-1155) Compile warning re casts in cpp/src/tests/InlineVector.cpp

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim reassigned QPID-1155:
--------------------------------

    Assignee: Gordon Sim

> Compile warning re casts in cpp/src/tests/InlineVector.cpp
> ----------------------------------------------------------
>
>                 Key: QPID-1155
>                 URL: https://issues.apache.org/jira/browse/QPID-1155
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: M3
>         Environment: Red Hat Enterprise Linux 4, g++ 3.4.6
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>            Priority: Minor
>         Attachments: qpid1155.diff
>
>
> There's a compile warning in cpp/src/tests/InlineVector.cpp that build settings convert to an error:
> InlineVector.cpp: In function `bool InlineVectorTestSuite::isInline(const InlineVectorTestSuite::Vec&)':
> InlineVector.cpp:33: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:33: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:34: warning: cast from `const int*' to `char*' discards qualifiers from pointer target type
> InlineVector.cpp:34: warning: cast from `const InlineVectorTestSuite::Vec*' to `char*' discards qualifiers from pointer target type
> The attached patch fixes this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.