From 41746733fe362340660b43e46d259481a563af36 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Sat, 5 Dec 2015 00:47:53 -0800 Subject: [PATCH] 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 --- libraries/AP_Common/AP_Common.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index f6b5fbef0f..a0333c84e9 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -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