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

Fixed warnings - strict-prototypes #115

Draft
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Apr 17, 2024

There are new warnings on CI related with this compiler option strict-prototypes

https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/1860/gcc/new/

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde ahcorde self-assigned this Apr 17, 2024
@ahcorde ahcorde marked this pull request as draft April 17, 2024 17:11
@@ -103,7 +103,7 @@
* This is the preferred method over calling the underlying function directly.
*/
# define TRACETOOLS_TRACEPOINT_ENABLED(event_name) \
ros_trace_enabled_ ## event_name()
ros_trace_enabled_ ## event_name(void)
Copy link
Member

@christophebedard christophebedard Apr 17, 2024

Choose a reason for hiding this comment

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

This is not going to work (see build failures in GitHub CI), because these macros are used for both declaration and implementation+call. I'd need to split them up.

Copy link
Member

Choose a reason for hiding this comment

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

If you wanted to, you could split out the other changes (or remove the changes involving macros above from this PR), since they should be fine:

  • ros_trace_compile_status() in this file
  • tracetools/src/status_tool.c
  • tracetools/src/tracetools.c

Then I can look into dealing with the changes to macros separately.

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.

2 participants