From bbb3445b53c4942d2ee5a8a2d29d9990c9f2db7a Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 22 Feb 2020 23:19:10 -0600 Subject: [PATCH] Mark C4839/C4840 as severe warnings. Mark C4839 and C4840 as severe warnings: - C4839: non-standard use of class 'type' as an argument to a variadic function - C4840: non-portable use of class 'type' as an argument to a variadic function --- premake5.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index be8ffdf80..22f7e5c5f 100644 --- a/premake5.lua +++ b/premake5.lua @@ -150,13 +150,17 @@ filter("platforms:Windows") cppdialect("C++17") buildoptions({ "/MP", -- Multiprocessor compilation. + "/utf-8", -- 'build correctly on systems with non-Latin codepages'. + -- Mark warnings as severe + "/w14839", -- non-standard use of class 'type' as an argument to a variadic function + "/w14840", -- non-portable use of class 'type' as an argument to a variadic function + -- Disable warnings "/wd4100", -- Unreferenced parameters are ok. "/wd4201", -- Nameless struct/unions are ok. "/wd4512", -- 'assignment operator was implicitly defined as deleted'. "/wd4127", -- 'conditional expression is constant'. "/wd4324", -- 'structure was padded due to alignment specifier'. "/wd4189", -- 'local variable is initialized but not referenced'. - "/utf-8", -- 'build correctly on systems with non-Latin codepages'. }) flags({ "NoMinimalRebuild", -- Required for /MP above.