Merge branch '47-fix-windows-unreferenced-formal-parameter-warnings' into 'master'
Resolve "Fix Windows 'unreferenced formal parameter' warnings" Closes #47 See merge request micro-ROS/ros_tracing/ros2_tracing!83
This commit is contained in:
commit
49ddfc4122
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,9 @@ bool ros_trace_compile_status()
|
|||
#ifndef _WIN32
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#else
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4100)
|
||||
#endif
|
||||
|
||||
void TRACEPOINT(
|
||||
|
@ -217,6 +220,8 @@ void TRACEPOINT(
|
|||
|
||||
#ifndef _WIN32
|
||||
# pragma GCC diagnostic pop
|
||||
#else
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif // TRACETOOLS_DISABLED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue