From 018c9ad40b117b194299ea0cc92ec152a48b5d8c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Jun 2018 20:51:59 +1000 Subject: [PATCH] HAL_ChibiOS: fixed build warnings --- libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c index 3102f4a0bf..2d8a945f73 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c @@ -15,6 +15,7 @@ #include "stm32_util.h" #include +#include void stm32_timer_set_input_filter(stm32_tim_t *tim, uint8_t channel, uint8_t filter_mode) { @@ -72,7 +73,7 @@ void show_stack_usage(void) p++; } uint32_t stack_left = ((uint32_t)p) - stklimit; - printf("%s %u\n", tp->name, stack_left); + printf("%s %u\n", tp->name, (unsigned)stack_left); tp = chRegNextThread(tp); } while (tp != NULL); }