Fix "UNUSED" redefined warning on HAL_STM32 (#14342)

This commit is contained in:
Karl Andersson 2019-06-21 07:48:10 +02:00 committed by Scott Lahteine
parent 4b365552db
commit 81d550754a

View file

@ -57,8 +57,12 @@
// Remove compiler warning on an unused variable // Remove compiler warning on an unused variable
#ifndef UNUSED #ifndef UNUSED
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
#define UNUSED(X) (void)X
#else
#define UNUSED(x) ((void)(x)) #define UNUSED(x) ((void)(x))
#endif #endif
#endif
// Macros to make a string from a macro // Macros to make a string from a macro
#define STRINGIFY_(M) #M #define STRINGIFY_(M) #M