Skip to content

Commit 390134b

Browse files
committed
More fixes
1 parent e4a1b73 commit 390134b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎Tests/Lua/LuaLibrary5.1.5.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ extern "C"
6363
#elif __GNUC__
6464
#pragma GCC diagnostic push
6565
#pragma GCC diagnostic ignored "-Wpragmas"
66+
#pragma GCC diagnostic ignored "-Waddress"
6667
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
6768
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
6869
#pragma GCC diagnostic ignored "-Wempty-body"

‎Tests/Source/Tests.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,13 @@ TEST_F(LuaBridgeTest, CFunction)
237237
EXPECT_FLOAT_EQ(3.14f, result<float>());
238238
}
239239

240+
#if !defined(LUABRIDGE_TEST_LUA_VERSION) || LUABRIDGE_TEST_LUA_VERSION > 502
240241
{
241242
runLua("result = doubleFn (-12.3)");
242243
EXPECT_EQ(true, result().isNumber());
243244
EXPECT_DOUBLE_EQ(-12.3, result<double>());
244245
}
246+
#endif
245247

246248
{
247249
runLua("result = charFn ('a')");

0 commit comments

Comments
 (0)