Fix unused params when lttng not enabled
This commit is contained in:
parent
55127d0c31
commit
b41c59fbdd
2 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,11 @@ bool ros_trace_compile_status()
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#endif
|
||||
|
||||
void TRACEPOINT(
|
||||
rcl_init,
|
||||
const void * context_handle)
|
||||
|
@ -193,3 +198,7 @@ void TRACEPOINT(
|
|||
callback_end,
|
||||
callback);
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue