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 Feb 13, 2018
Merged
Conversation
3106fba to
2eddc4e
Compare
clalancette
reviewed
Feb 12, 2018
| { | ||
| 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]); |
Contributor
There was a problem hiding this comment.
I know that ros_comm generally uses boost, but given that this is buried in a test, can we just use std::shared_ptr?
Member
Author
There was a problem hiding this comment.
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); |
Contributor
There was a problem hiding this comment.
Is a semicolon supposed to be here?
Member
Author
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://build.ros.org/view/Mdev/job/Mdev__ros_comm__ubuntu_bionic_amd64/2/warnings22Result/new/