Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

fix various compiler warnings on bionic#1325

Merged
dirk-thomas merged 1 commit intolunar-develfrom
fix_warning_on_bionic
Feb 13, 2018
Merged

fix various compiler warnings on bionic#1325
dirk-thomas merged 1 commit intolunar-develfrom
fix_warning_on_bionic

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

@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
{
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
Copy Markdown
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
Copy Markdown
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.


// Conversions to other types should now throw an XmlRpcException.
EXPECT_THROW((int)value, XmlRpcException);
EXPECT_THROW((void)(int)value; , XmlRpcException);
Copy link
Copy Markdown
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
Copy Markdown
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
@dirk-thomas dirk-thomas force-pushed the fix_warning_on_bionic branch from 3cdff92 to a112ba5 Compare February 13, 2018 00:28
@dirk-thomas dirk-thomas merged commit 24c90e4 into lunar-devel Feb 13, 2018
@dirk-thomas dirk-thomas deleted the fix_warning_on_bionic branch February 13, 2018 06:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants