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

Improved whitespace to fix g++ 7 warning#1138

Merged
dirk-thomas merged 1 commit intoros:lunar-develfrom
racko:if_does_not_guard_fix
Aug 14, 2017
Merged

Improved whitespace to fix g++ 7 warning#1138
dirk-thomas merged 1 commit intoros:lunar-develfrom
racko:if_does_not_guard_fix

Conversation

@racko
Copy link
Copy Markdown
Contributor

@racko racko commented Aug 12, 2017

.../ros_comm/tools/rosbag_storage/src/view.cpp:249:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if ((bag.getMode() & bagmode::Read) != bagmode::Read)
^~
.../ros_comm/tools/rosbag_storage/src/view.cpp:252:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
boost::function<bool(ConnectionInfo const*)> query = TrueQuery();
^~~~~

@dirk-thomas
Copy link
Copy Markdown
Member

Please limit the patch to required changes to get rid of warning but avoid all other whitespace changes. While it would improve the code style it adds unnecessary extra effort when backporting patches between different branches.

.../ros_comm/tools/rosbag_storage/src/view.cpp:249:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if ((bag.getMode() & bagmode::Read) != bagmode::Read)
     ^~
.../ros_comm/tools/rosbag_storage/src/view.cpp:252:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  boost::function<bool(ConnectionInfo const*)> query = TrueQuery();
  ^~~~~
@racko racko force-pushed the if_does_not_guard_fix branch from 8741466 to 6369533 Compare August 14, 2017 17:35
@racko
Copy link
Copy Markdown
Contributor Author

racko commented Aug 14, 2017

Updated

@dirk-thomas
Copy link
Copy Markdown
Member

Thanks.

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