Fastlz fix for -Wno-class-memaccess' is valid for C++/ObjC++ but not for C (#479)

* Added a selective filter for *.c files compiled on linux using make

Co-authored-by: Graham Pentheny <graham.pentheny@gmail.com>
This commit is contained in:
Siddharth J Singh 2022-11-09 22:24:56 +05:30 committed by GitHub
parent b0d71bed92
commit e6b675bb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,8 +156,6 @@ project "RecastDemo"
"`pkg-config --cflags gl`",
"`pkg-config --cflags glu`",
"-Wno-ignored-qualifiers",
"-Wno-error=class-memaccess"
}
linkoptions {
"`pkg-config --libs sdl2`",
@ -165,6 +163,11 @@ project "RecastDemo"
"`pkg-config --libs glu`"
}
filter { "system:linux", "action:gmake*", "files:*.c" }
buildoptions {
"-Wno-class-memaccess"
}
-- windows library cflags and libs
filter "system:windows"
includedirs { "../RecastDemo/Contrib/SDL/include" }