Merge branch 'fix-unused-params' into 'tracetools'

Fix unused params

See merge request micro-ROS/ros2_tracing!3
This commit is contained in:
Christophe Bedard 2019-06-17 14:02:11 +00:00
commit 7c7290e8bb
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -25,6 +25,7 @@ const char * get_symbol(void * funptr)
const char * demangled_val = (status == 0 ? demangled : info.dli_sname);
return demangled_val != 0 ? demangled_val : SYMBOL_UNKNOWN;
#else
(void)funptr;
return SYMBOL_UNKNOWN;
#endif
}