Commit 6d558362 authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

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.
parent ca36a2e6
...@@ -64,7 +64,7 @@ solution "test" ...@@ -64,7 +64,7 @@ solution "test"
defines { "_CRT_SECURE_NO_WARNINGS" } defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "gmake" configuration "gmake"
buildoptions "-msse4.2 -Werror -Wall -Wextra -Wswitch-default" buildoptions "-msse4.2 -Werror -Wall -Wextra"
project "gtest" project "gtest"
kind "StaticLib" kind "StaticLib"
...@@ -87,7 +87,7 @@ solution "test" ...@@ -87,7 +87,7 @@ solution "test"
kind "ConsoleApp" kind "ConsoleApp"
if _ACTION == "gmake" then if _ACTION == "gmake" then
buildoptions "-Weffc++" buildoptions "-Weffc++ -Wswitch-default"
end end
files { files {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment