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:
Christophe Bedard 2019-08-06 09:01:02 +00:00
commit 49ddfc4122

View file

@ -36,6 +36,9 @@ bool ros_trace_compile_status()
#ifndef _WIN32 #ifndef _WIN32
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter" # pragma GCC diagnostic ignored "-Wunused-parameter"
#else
# pragma warning(push)
# pragma warning(disable: 4100)
#endif #endif
void TRACEPOINT( void TRACEPOINT(
@ -217,6 +220,8 @@ void TRACEPOINT(
#ifndef _WIN32 #ifndef _WIN32
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#else
# pragma warning(pop)
#endif #endif
#endif // TRACETOOLS_DISABLED #endif // TRACETOOLS_DISABLED