diff --git a/libraries/AP_Scripting/lua/src/lauxlib.c b/libraries/AP_Scripting/lua/src/lauxlib.c index 3f7a0010ff..0822d94959 100644 --- a/libraries/AP_Scripting/lua/src/lauxlib.c +++ b/libraries/AP_Scripting/lua/src/lauxlib.c @@ -26,6 +26,9 @@ #include "lauxlib.h" +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wfloat-equal" +#endif /* ** {====================================================== diff --git a/libraries/AP_Scripting/lua/src/lbaselib.c b/libraries/AP_Scripting/lua/src/lbaselib.c index dd55de1d60..5a81b06e88 100644 --- a/libraries/AP_Scripting/lua/src/lbaselib.c +++ b/libraries/AP_Scripting/lua/src/lbaselib.c @@ -20,6 +20,9 @@ #include "lauxlib.h" #include "lualib.h" +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wunused-function" +#endif static int luaB_print (lua_State *L) { int n = lua_gettop(L); /* number of arguments */ diff --git a/libraries/AP_Scripting/lua/src/lcode.c b/libraries/AP_Scripting/lua/src/lcode.c index 12619f54a0..48ef89d451 100644 --- a/libraries/AP_Scripting/lua/src/lcode.c +++ b/libraries/AP_Scripting/lua/src/lcode.c @@ -7,6 +7,10 @@ #define lcode_c #define LUA_CORE +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + #include "lprefix.h" diff --git a/libraries/AP_Scripting/lua/src/liolib.c b/libraries/AP_Scripting/lua/src/liolib.c index de81b15571..a6935505e4 100644 --- a/libraries/AP_Scripting/lua/src/liolib.c +++ b/libraries/AP_Scripting/lua/src/liolib.c @@ -22,7 +22,9 @@ #include "lauxlib.h" #include "lualib.h" - +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wunused-function" +#endif /* diff --git a/libraries/AP_Scripting/lua/src/lmathlib.c b/libraries/AP_Scripting/lua/src/lmathlib.c index 7ef7e593fd..4f6f491725 100644 --- a/libraries/AP_Scripting/lua/src/lmathlib.c +++ b/libraries/AP_Scripting/lua/src/lmathlib.c @@ -18,6 +18,10 @@ #include "lauxlib.h" #include "lualib.h" +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + #undef PI #define PI (l_mathop(3.141592653589793238462643383279502884)) diff --git a/libraries/AP_Scripting/lua/src/lstrlib.c b/libraries/AP_Scripting/lua/src/lstrlib.c index 358d62dcde..af44efbb4f 100644 --- a/libraries/AP_Scripting/lua/src/lstrlib.c +++ b/libraries/AP_Scripting/lua/src/lstrlib.c @@ -24,6 +24,10 @@ #include "lauxlib.h" #include "lualib.h" +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + /* ** maximum number of captures that a pattern can do during diff --git a/libraries/AP_Scripting/lua/src/ltable.c b/libraries/AP_Scripting/lua/src/ltable.c index ea4fe7fcb3..2c3cbaef56 100644 --- a/libraries/AP_Scripting/lua/src/ltable.c +++ b/libraries/AP_Scripting/lua/src/ltable.c @@ -7,6 +7,10 @@ #define ltable_c #define LUA_CORE +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + #include "lprefix.h" diff --git a/libraries/AP_Scripting/lua/src/lundump.c b/libraries/AP_Scripting/lua/src/lundump.c index 7a67d75aaa..d2c8f3f070 100644 --- a/libraries/AP_Scripting/lua/src/lundump.c +++ b/libraries/AP_Scripting/lua/src/lundump.c @@ -4,6 +4,10 @@ ** See Copyright Notice in lua.h */ +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + #define lundump_c #define LUA_CORE diff --git a/libraries/AP_Scripting/lua/src/lvm.c b/libraries/AP_Scripting/lua/src/lvm.c index cc43d8714d..0c180f7940 100644 --- a/libraries/AP_Scripting/lua/src/lvm.c +++ b/libraries/AP_Scripting/lua/src/lvm.c @@ -7,6 +7,10 @@ #define lvm_c #define LUA_CORE +#if defined(ARDUPILOT_BUILD) +#pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + #include "lprefix.h" #include @@ -1320,3 +1324,4 @@ void luaV_execute (lua_State *L) { /* }================================================================== */ +