From df27e4eb1a4ade9912f8b7d75c25769a3193dbd0 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Mon, 11 May 2020 17:54:25 +0200 Subject: [PATCH] Fix build -Wno-error does not ignore unknown warnings on old GCC versions causing problems when using it for new warnings. On the other hand, -Wno-X will ignore unknown warnings, so we can use this instead. Fix #403 Fix #413 --- RecastDemo/premake5.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecastDemo/premake5.lua b/RecastDemo/premake5.lua index 8c218dd..3f8b75b 100644 --- a/RecastDemo/premake5.lua +++ b/RecastDemo/premake5.lua @@ -76,7 +76,7 @@ project "Detour" -- linux library cflags and libs configuration { "linux", "gmake" } buildoptions { - "-Wno-error=class-memaccess" + "-Wno-class-memaccess" } @@ -156,7 +156,7 @@ project "RecastDemo" "`pkg-config --cflags gl`", "`pkg-config --cflags glu`", "-Wno-ignored-qualifiers", - "-Wno-error=class-memaccess" + "-Wno-class-memaccess" } linkoptions {