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.
This commit is contained in:
Grant Morphett 2015-02-05 17:27:15 +11:00 committed by Andrew Tridgell
parent 4ffb4f6fef
commit 0b4ac5d256

View File

@ -53,7 +53,7 @@
// in conjunction with a suitably modified Arduino IDE; never define for // in conjunction with a suitably modified Arduino IDE; never define for
// production as it generates bad code. // production as it generates bad code.
// //
#if PRINTF_FORMAT_WARNING_DEBUG #if defined(PRINTF_FORMAT_WARNING_DEBUG)
# undef PSTR # undef PSTR
# define PSTR(_x) _x // help the compiler with printf_P # define PSTR(_x) _x // help the compiler with printf_P
# define float double // silence spurious format warnings for %f # define float double // silence spurious format warnings for %f