mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: avoid build warnings
This commit is contained in:
parent
764117c336
commit
6222649e37
|
@ -26,6 +26,9 @@
|
|||
|
||||
#include "lauxlib.h"
|
||||
|
||||
#if defined(ARDUPILOT_BUILD)
|
||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
||||
#endif
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#define lcode_c
|
||||
#define LUA_CORE
|
||||
|
||||
#if defined(ARDUPILOT_BUILD)
|
||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
||||
#endif
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
#include "lauxlib.h"
|
||||
#include "lualib.h"
|
||||
|
||||
|
||||
#if defined(ARDUPILOT_BUILD)
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#define ltable_c
|
||||
#define LUA_CORE
|
||||
|
||||
#if defined(ARDUPILOT_BUILD)
|
||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
||||
#endif
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 <float.h>
|
||||
|
@ -1320,3 +1324,4 @@ void luaV_execute (lua_State *L) {
|
|||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue