Ignore unused parameters in tracetools.c for Windows as well

This commit is contained in:
Christophe Bedard 2019-08-06 08:48:05 +02:00
parent 936ff201fd
commit 4528219ddf

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