Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up two different C problems. #129

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

clalancette
Copy link
Contributor

The first one was that the visibility_control file was marked as a C++ header, but was included in a C header. Avoid that by just making visibility_control a C header.

The second problem is that, in C, a function with no arguments technically takes "any" arguments. Fix
ros_trace_compile_status() to have void arguments, which ensures that no arguments can be passed.

This might have an effect on some Clang warnings that we see in e.g. https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/1968/gcc/new/ , but regardless this is more correct.

The first one was that the visibility_control file was
marked as a C++ header, but was included in a C header.
Avoid that by just making visibility_control a C header.

The second problem is that, in C, a function with no
arguments technically takes "any" arguments.  Fix
ros_trace_compile_status() to have void arguments, which
ensures that no arguments can be passed.

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
@clalancette clalancette force-pushed the clalancette/fix-visibility-control branch from c5e880c to 06abd59 Compare August 2, 2024 17:30
Copy link
Member

@christophebedard christophebedard 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 to me with green CI!

@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI

@clalancette clalancette merged commit 7758ad4 into rolling Aug 2, 2024
9 checks passed
@clalancette clalancette deleted the clalancette/fix-visibility-control branch August 2, 2024 23:01
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