From c5c16e97f8e291d355ef7b51fd3b34e268248cfc Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Thu, 8 Oct 2015 18:54:40 -0400 Subject: [PATCH] Fix -Wundef warning by defining UAVCAN_STM32_BAREMETAL to 0 if it is not defined --- .../stm32/driver/include/uavcan_stm32/build_config.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/build_config.hpp b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/build_config.hpp index 3eba3ba6bf..b3bf403594 100644 --- a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/build_config.hpp +++ b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/build_config.hpp @@ -15,6 +15,10 @@ # define UAVCAN_STM32_NUTTX 0 #endif +#ifndef UAVCAN_STM32_BAREMETAL +# define UAVCAN_STM32_BAREMETAL 0 +#endif + /** * Number of interfaces must be enabled explicitly */