Skip to content
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

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

@dirk-thomas dirk-thomas force-pushed the fix_warning_on_bionic branch 3 times, most recently from 3106fba to 2eddc4e Compare February 12, 2018 21:04
@@ -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]);
Copy link
Contributor

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?

Copy link
Member Author

@dirk-thomas dirk-thomas Feb 12, 2018

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);
Copy link
Contributor

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?

Copy link
Member Author

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.

@dirk-thomas dirk-thomas force-pushed the fix_warning_on_bionic branch 5 times, most recently from 79bd4b8 to 3cdff92 Compare February 12, 2018 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants