mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-06 13:41:35 +01:00
premake4.lua: only enable "-Wswitch-default" in unittest
There's no need to enforce this flag during the build of the perftest or the GoogleTest library, as both include third-party code.
This commit is contained in:
parent
ca36a2e66e
commit
6d5583628a
@ -64,7 +64,7 @@ solution "test"
|
||||
defines { "_CRT_SECURE_NO_WARNINGS" }
|
||||
|
||||
configuration "gmake"
|
||||
buildoptions "-msse4.2 -Werror -Wall -Wextra -Wswitch-default"
|
||||
buildoptions "-msse4.2 -Werror -Wall -Wextra"
|
||||
|
||||
project "gtest"
|
||||
kind "StaticLib"
|
||||
@ -87,7 +87,7 @@ solution "test"
|
||||
kind "ConsoleApp"
|
||||
|
||||
if _ACTION == "gmake" then
|
||||
buildoptions "-Weffc++"
|
||||
buildoptions "-Weffc++ -Wswitch-default"
|
||||
end
|
||||
|
||||
files {
|
||||
|
Loading…
x
Reference in New Issue
Block a user