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:
parent
5bf0b34445
commit
bbb3445b53
|
@ -150,13 +150,17 @@ filter("platforms:Windows")
|
||||||
cppdialect("C++17")
|
cppdialect("C++17")
|
||||||
buildoptions({
|
buildoptions({
|
||||||
"/MP", -- Multiprocessor compilation.
|
"/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.
|
"/wd4100", -- Unreferenced parameters are ok.
|
||||||
"/wd4201", -- Nameless struct/unions are ok.
|
"/wd4201", -- Nameless struct/unions are ok.
|
||||||
"/wd4512", -- 'assignment operator was implicitly defined as deleted'.
|
"/wd4512", -- 'assignment operator was implicitly defined as deleted'.
|
||||||
"/wd4127", -- 'conditional expression is constant'.
|
"/wd4127", -- 'conditional expression is constant'.
|
||||||
"/wd4324", -- 'structure was padded due to alignment specifier'.
|
"/wd4324", -- 'structure was padded due to alignment specifier'.
|
||||||
"/wd4189", -- 'local variable is initialized but not referenced'.
|
"/wd4189", -- 'local variable is initialized but not referenced'.
|
||||||
"/utf-8", -- 'build correctly on systems with non-Latin codepages'.
|
|
||||||
})
|
})
|
||||||
flags({
|
flags({
|
||||||
"NoMinimalRebuild", -- Required for /MP above.
|
"NoMinimalRebuild", -- Required for /MP above.
|
||||||
|
|
Loading…
Reference in New Issue