Skip to content

[rcl_logging_spdlog] Add warnings - #54

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

audrow merged 3 commits into
masterfrom
audrow/add-warnings-rcl_logging_spdlog

Conversation

@audrow

@audrow audrow commented Sep 29, 2020 •

Copy link
Copy Markdown
Member

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 <[email protected]>
@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
Comment thread rcl_logging_spdlog/CMakeLists.txt Resolved
Signed-off-by: Audrow Nash <[email protected]>

Co-authored-by: Chris Lalancette <[email protected]>
@audrow
audrow requested a review from clalancette September 29, 2020 16:54

@clalancette clalancette left a comment

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.

Looks good with green CI.

@audrow

audrow commented Sep 29, 2020

Copy link
Copy Markdown
Member Author
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Comment thread rcl_logging_spdlog/CMakeLists.txt Resolved
Signed-off-by: Audrow Nash <[email protected]>

Co-authored-by: Chen Lihui <[email protected]>
@audrow

audrow commented Oct 6, 2020

Copy link
Copy Markdown
Member Author

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

audrow commented Oct 20, 2020

Copy link
Copy Markdown
Member Author

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