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/27 00:05:46 UTC

[jira] Created: (QPID-1156) Compile warning re casts in cpp/src/qpid/framing/Blob.h

Compile warning re casts in cpp/src/qpid/framing/Blob.h
-------------------------------------------------------

                 Key: QPID-1156
                 URL: https://issues.apache.org/jira/browse/QPID-1156
             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


Building the C++ tests (make check) there's a compile warning that gets promoted to an error:

../../src/qpid/framing/Blob.h:141:   instantiated from `qpid::framing::Blob<Size, BaseType>::Blob(const qpid::framing::Blob<Size, BaseType>&) [with unsigned int Size = 12u, BaseType = BlobTestSuite::Base]'
Blob.cpp:63:   instantiated from here
../../src/qpid/framing/Blob.h:132: warning: cast from `const qpid::framing::Blob<12u, BlobTestSuite::Base>*' to `char*' discards qualifiers from pointer target type

The attached patch resolves 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-1156) Compile warning re casts in cpp/src/qpid/framing/Blob.h

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

Gordon Sim reassigned QPID-1156:
--------------------------------

    Assignee: Gordon Sim

> Compile warning re casts in cpp/src/qpid/framing/Blob.h
> -------------------------------------------------------
>
>                 Key: QPID-1156
>                 URL: https://issues.apache.org/jira/browse/QPID-1156
>             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: qpid1156.diff
>
>
> Building the C++ tests (make check) there's a compile warning that gets promoted to an error:
> ../../src/qpid/framing/Blob.h:141:   instantiated from `qpid::framing::Blob<Size, BaseType>::Blob(const qpid::framing::Blob<Size, BaseType>&) [with unsigned int Size = 12u, BaseType = BlobTestSuite::Base]'
> Blob.cpp:63:   instantiated from here
> ../../src/qpid/framing/Blob.h:132: warning: cast from `const qpid::framing::Blob<12u, BlobTestSuite::Base>*' to `char*' discards qualifiers from pointer target type
> The attached patch resolves 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-1156) Compile warning re casts in cpp/src/qpid/framing/Blob.h

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

Steve Huston updated QPID-1156:
-------------------------------

    Attachment: qpid1156.diff

Patch to resolve this issue.

> Compile warning re casts in cpp/src/qpid/framing/Blob.h
> -------------------------------------------------------
>
>                 Key: QPID-1156
>                 URL: https://issues.apache.org/jira/browse/QPID-1156
>             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: qpid1156.diff
>
>
> Building the C++ tests (make check) there's a compile warning that gets promoted to an error:
> ../../src/qpid/framing/Blob.h:141:   instantiated from `qpid::framing::Blob<Size, BaseType>::Blob(const qpid::framing::Blob<Size, BaseType>&) [with unsigned int Size = 12u, BaseType = BlobTestSuite::Base]'
> Blob.cpp:63:   instantiated from here
> ../../src/qpid/framing/Blob.h:132: warning: cast from `const qpid::framing::Blob<12u, BlobTestSuite::Base>*' to `char*' discards qualifiers from pointer target type
> The attached patch resolves 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-1156) Compile warning re casts in cpp/src/qpid/framing/Blob.h

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

Gordon Sim resolved QPID-1156.
------------------------------

    Resolution: Fixed

Patch applied on trunk

> Compile warning re casts in cpp/src/qpid/framing/Blob.h
> -------------------------------------------------------
>
>                 Key: QPID-1156
>                 URL: https://issues.apache.org/jira/browse/QPID-1156
>             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: qpid1156.diff
>
>
> Building the C++ tests (make check) there's a compile warning that gets promoted to an error:
> ../../src/qpid/framing/Blob.h:141:   instantiated from `qpid::framing::Blob<Size, BaseType>::Blob(const qpid::framing::Blob<Size, BaseType>&) [with unsigned int Size = 12u, BaseType = BlobTestSuite::Base]'
> Blob.cpp:63:   instantiated from here
> ../../src/qpid/framing/Blob.h:132: warning: cast from `const qpid::framing::Blob<12u, BlobTestSuite::Base>*' to `char*' discards qualifiers from pointer target type
> The attached patch resolves this issue.

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