Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPhilipp A. Hartmann <pah@qo.cx>2014-07-10 22:48:54 +0400
committerPhilipp A. Hartmann <pah@qo.cx>2014-07-10 22:49:10 +0400
commit6d5583628a537a7ce96cf5037c6872dc6bcf8dd0 (patch)
treef213517f029c340fa1f56573bfe9205ab0a0f4e7 /build
parentca36a2e66eb87a6caed5889f6adbc72e5568f820 (diff)
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.
Diffstat (limited to 'build')
-rw-r--r--build/premake4.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/premake4.lua b/build/premake4.lua
index 1ef7ff58..0b5dbb18 100644
--- a/build/premake4.lua
+++ b/build/premake4.lua
@@ -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 {