-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix various compiler warnings on bionic #1325
Conversation
3106fba
to
2eddc4e
Compare
@@ -132,7 +134,7 @@ TEST_F(Synchronous, readWhileWriting) | |||
for (int i = 0; i < 10; ++i) | |||
{ | |||
const uint32_t buf_size = 1024*1024; | |||
std::auto_ptr<uint8_t> read_buf(new uint8_t[buf_size]); | |||
boost::shared_ptr<uint8_t[]> read_buf(new uint8_t[buf_size]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that ros_comm
generally uses boost, but given that this is buried in a test, can we just use std::shared_ptr
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the package isn't building with C++11 it can't use std
smart pointers. And changing the C++ standard version was beyond the scope of this patch.
@@ -457,7 +457,7 @@ TEST(XmpRpc, errors) { | |||
EXPECT_FALSE(v); | |||
|
|||
// Conversions to other types should now throw an XmlRpcException. | |||
EXPECT_THROW((int)value, XmlRpcException); | |||
EXPECT_THROW((void)(int)value; , XmlRpcException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a semicolon supposed to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this. It is a left over of a previously tried workaround. I removed it.
79bd4b8
to
3cdff92
Compare
3cdff92
to
a112ba5
Compare
http://build.ros.org/view/Mdev/job/Mdev__ros_comm__ubuntu_bionic_amd64/2/warnings22Result/new/