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
This commit is contained in:
Jakob Botsch Nielsen 2020-05-11 17:54:25 +02:00
parent 57610fa6ef
commit df27e4eb1a

View File

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