AP_Scripting: avoid build warnings

This commit is contained in:
Andrew Tridgell 2020-04-24 12:26:04 +10:00
parent 764117c336
commit 6222649e37
9 changed files with 34 additions and 1 deletions

View File

@ -26,6 +26,9 @@
#include "lauxlib.h"
#if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
/*
** {======================================================

View File

@ -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 */

View File

@ -7,6 +7,10 @@
#define lcode_c
#define LUA_CORE
#if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
#include "lprefix.h"

View File

@ -22,7 +22,9 @@
#include "lauxlib.h"
#include "lualib.h"
#if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
/*

View File

@ -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))

View File

@ -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

View File

@ -7,6 +7,10 @@
#define ltable_c
#define LUA_CORE
#if defined(ARDUPILOT_BUILD)
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
#include "lprefix.h"

View File

@ -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

View File

@ -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) {
/* }================================================================== */