Skip to content

add c test using logging macros - #35

Merged
dirk-thomas merged 3 commits into
masterfrom
debug_clang_warning
Jun 16, 2017
Merged

dirk-thomas merged 3 commits into
masterfrom
debug_clang_warning

Conversation

@dirk-thomas

@dirk-thomas dirk-thomas commented Jun 15, 2017 •

Copy link
Copy Markdown
Member

Fixes #32.

For now the PR only adds a test which reproduced the problem:

  • Linux Build Status
  • OS X Build Status

Looking into a fix...

@dirk-thomas dirk-thomas added the in progress Actively being worked on (Kanban column) label Jun 15, 2017
@dirk-thomas dirk-thomas self-assigned this Jun 15, 2017
@dirk-thomas
dirk-thomas force-pushed the debug_clang_warning branch 3 times, most recently from c57bda2 to 8919ddb Compare June 15, 2017 18:56
@dirk-thomas

Copy link
Copy Markdown
Member Author

One simple solution to fix this is to switch to C11. I won't look into alternative solutions for now until we reconsidered if switching is an option...

@dirk-thomas

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

@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Jun 15, 2017

@wjwwood wjwwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code changes lgtm, but there is a different warning on some of the CI builds now:

ISO C99 requires at least one argument for the "..." in a variadic macro

-- http://ci.ros2.org/job/ci_linux/2751/warnings22Result/new/

@dirk-thomas

Copy link
Copy Markdown
Member Author

Since this overlaps with other PR atm I would wait until they are merged, rebase/update and run CI again.

@dirk-thomas
dirk-thomas force-pushed the debug_clang_warning branch 2 times, most recently from ac21582 to f173f04 Compare June 16, 2017 22:48
@dirk-thomas

dirk-thomas commented Jun 16, 2017 •

Copy link
Copy Markdown
Member Author

Commit 94e2f1c folds the format arg of the log macros into the vargs to make a compiler stop 😭 While it would be good to keep the explicit argument for documentation as well as completion we don't know a better way around for now...

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

@dirk-thomas
dirk-thomas force-pushed the debug_clang_warning branch from f173f04 to 30ae507 Compare June 16, 2017 23:02
@dirk-thomas
dirk-thomas merged commit 7126667 into master Jun 16, 2017
@dirk-thomas
dirk-thomas deleted the debug_clang_warning branch June 16, 2017 23:29
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 16, 2017
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.

rcutils logging macro warning

2 participants