Browse Source

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

pull/1/head
Karl Andersson 5 years ago
committed by Scott Lahteine
parent
commit
81d550754a
  1. 6
      Marlin/src/core/macros.h

6
Marlin/src/core/macros.h

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

Loading…
Cancel
Save