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
This commit is contained in:
gibbed 2020-02-22 23:19:10 -06:00 committed by Rick Gibbed
parent 5bf0b34445
commit bbb3445b53
1 changed files with 5 additions and 1 deletions

View File

@ -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.