Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
-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 recastnavigation#403
Fix recastnavigation#413
  • Loading branch information
jakobbotsch committed May 11, 2020
1 parent 57610fa commit df27e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecastDemo/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ project "Detour"
-- linux library cflags and libs
configuration { "linux", "gmake" }
buildoptions {
"-Wno-error=class-memaccess"
"-Wno-class-memaccess"
}


Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit df27e4e

Please sign in to comment.