Skip to content

[rcl_logging_spdlog] Add warnings#54

Merged
audrow merged 3 commits intomasterfrom
audrow/add-warnings-rcl_logging_spdlog
Oct 20, 2020
Merged

[rcl_logging_spdlog] Add warnings#54
audrow merged 3 commits intomasterfrom
audrow/add-warnings-rcl_logging_spdlog

Conversation

@audrow
Copy link
Copy Markdown
Member

@audrow audrow commented Sep 29, 2020

This PR enables -Wformat=2, -Wconversion, -Woverloaded-virtual, -Wshadow, -Wnon-virtual-dtor, -Wold-style-cast, and -Wcast-qual in rcl_logging_spdlog. No source code was modified to enable these warnings.

Relies on googletest being v1.10.0 (ament/googletest#8).

Signed-off-by: Audrow Nash <audrow.nash@gmail.com>
@audrow audrow self-assigned this Sep 29, 2020
@audrow audrow changed the title "[rcl_logging_spdlog] Add warnings" [rcl_logging_spdlog] Add warnings Sep 29, 2020
Signed-off-by: Audrow Nash <audrow.nash@gmail.com>

Co-authored-by: Chris Lalancette <clalancette@openrobotics.org>
@audrow audrow requested a review from clalancette September 29, 2020 16:54
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with green CI.

@audrow
Copy link
Copy Markdown
Member Author

audrow commented Sep 29, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Audrow Nash <audrow.nash@gmail.com>

Co-authored-by: Chen Lihui <lihui.chen@sony.com>
@audrow
Copy link
Copy Markdown
Member Author

audrow commented Oct 6, 2020

Running different gtest versions to see if we can fix the warnings:

  • gtest v1.8.0 (what is currently used)
    • macOS Build Status → 31 warnings
  • gtest v1.10.0
    • macOS Build Status
  • Last commit on gtest that passed CI:
    • macOS Build Status → 2 warnings

@audrow
Copy link
Copy Markdown
Member Author

audrow commented Oct 20, 2020

New CI run, after gtest has been updated to v1.10.0:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@audrow audrow merged commit 4866a49 into master Oct 20, 2020
@delete-merged-branch delete-merged-branch bot deleted the audrow/add-warnings-rcl_logging_spdlog branch October 20, 2020 20:59
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.

3 participants