AP_Common: remove crazy #define float double

- not creating a warning buuuuuut this is just sooooo bad that it must be nuked on the spot
This commit is contained in:
Tom Pittenger 2015-12-05 00:47:53 -08:00 committed by Randy Mackay
parent e6cf86801d
commit 41746733fe

View File

@ -46,22 +46,6 @@
#define FMT_PRINTF(a,b) __attribute__((format(printf, a, b)))
#define FMT_SCANF(a,b) __attribute__((format(scanf, a, b)))
// Make some dire warnings into errors
//
// Some warnings indicate questionable code; rather than let
// these slide, we force them to become errors so that the
// developer has to find a safer alternative.
//
//#pragma GCC diagnostic error "-Wfloat-equal"
// The following is strictly for type-checking arguments to printf calls
// in conjunction with a suitably modified Arduino IDE; never define for
// production as it generates bad code.
//
#if defined(PRINTF_FORMAT_WARNING_DEBUG)
# define float double // silence spurious format warnings for %f
#endif
#define ToRad(x) radians(x) // *pi/180
#define ToDeg(x) degrees(x) // *180/pi