From b47c75dbf7df6178ccdd2e4398e038c510981079 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Thu, 11 Feb 2016 15:21:20 +0100 Subject: [PATCH] premake5: Get rid of warnings caused by protoc-generated code. - /wd4100 since "unused formal parameter" is not a critical error - _SCL_SECURE_NO_WARNINGS as unfortunately protoc's generated code still relies on potentially unsafe methods --- premake5.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 28b00b0e..dfc04e2b 100644 --- a/premake5.lua +++ b/premake5.lua @@ -108,7 +108,15 @@ workspace "iw4x" pchsource "src/STDInclude.cpp" -- real path buildoptions { "/Zm100" } filter "files:**.pb.*" - flags { "NoPCH" } + flags { + "NoPCH", + } + buildoptions { + "/wd4100", -- "Unused formal parameter" + } + defines { + "_SCL_SECURE_NO_WARNINGS", + } filter {} -- Dependency on zlib, json11 and asio