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:
Philipp A. Hartmann 2014-07-10 20:48:54 +02:00
parent ca36a2e66e
commit 6d5583628a

View File

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