From 6d5583628a537a7ce96cf5037c6872dc6bcf8dd0 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Thu, 10 Jul 2014 20:48:54 +0200 Subject: [PATCH] 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. --- build/premake4.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/premake4.lua b/build/premake4.lua index 1ef7ff5..0b5dbb1 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 {