From 0b4ac5d256012046fb2ee0004e95a56678cc4c16 Mon Sep 17 00:00:00 2001 From: Grant Morphett Date: Thu, 5 Feb 2015 17:27:15 +1100 Subject: [PATCH] AP_Common: Changes to fix the warnings in rover sitl build. We are starting the process of resolving all the warnings in the ardupilot builds of all vehicles and platforms. --- libraries/AP_Common/AP_Common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index ef650718ef..512a99a733 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -53,7 +53,7 @@ // in conjunction with a suitably modified Arduino IDE; never define for // production as it generates bad code. // -#if PRINTF_FORMAT_WARNING_DEBUG +#if defined(PRINTF_FORMAT_WARNING_DEBUG) # undef PSTR # define PSTR(_x) _x // help the compiler with printf_P # define float double // silence spurious format warnings for %f