From ee78391c093008d7ce9cbda4f5a7afe6d2816d41 Mon Sep 17 00:00:00 2001 From: Francois Keith Date: Mon, 25 Jan 2021 11:56:36 +0100 Subject: CSharp: Add 'warnaserror:...' to v142 flag table for VS This allows listing the warnings that must be flagged as errors. For example: target_compile_options(proj PRIVATE "/warnaserror:1998,4014") --- Templates/MSBuild/FlagTables/v142_CSharp.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Templates/MSBuild/FlagTables/v142_CSharp.json b/Templates/MSBuild/FlagTables/v142_CSharp.json index 9164849..4dcea9d 100644 --- a/Templates/MSBuild/FlagTables/v142_CSharp.json +++ b/Templates/MSBuild/FlagTables/v142_CSharp.json @@ -271,6 +271,17 @@ "flags": [] }, { + "name": "WarningsAsErrors", + "switch": "warnaserror:", + "comment": "", + "value": "", + "flags": [ + "UserValue", + "UserRequired", + "CommaAppendable" + ] + }, + { "name": "WarningLevel", "switch": "warn:0", "comment": "", -- cgit v0.12