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.