From d576e71b256d8ba853c522d365ff08e2a5e45d76 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sat, 29 Oct 2022 13:43:50 -0400 Subject: [PATCH] Disable class-memaccess error to fix builds on Ubuntu with newer versions of GCC Based on SgtVincent's suggestion here: https://github.com/recastnavigation/recastnavigation/issues/497#issuecomment-1293318731 Fixes #497 --- RecastDemo/premake5.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecastDemo/premake5.lua b/RecastDemo/premake5.lua index f6fdca6..c9a9f23 100644 --- a/RecastDemo/premake5.lua +++ b/RecastDemo/premake5.lua @@ -76,7 +76,7 @@ project "Detour" -- linux library cflags and libs filter {"system:linux", "action:gmake"} buildoptions { - "-Wno-class-memaccess" + "-Wno-error=class-memaccess" } project "DetourCrowd" @@ -155,7 +155,7 @@ project "RecastDemo" "`pkg-config --cflags gl`", "`pkg-config --cflags glu`", "-Wno-ignored-qualifiers", - "-Wno-class-memaccess" + "-Wno-error=class-memaccess" } linkoptions {