From 664938bdda2ce967c790f7a25d4f02076f53c94e Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Mon, 2 Jun 2025 09:05:21 +0200 Subject: [PATCH] vs2022 has a message which is not an error * common/parse_compiler_output.pm: * make_pretty.pl: --- common/parse_compiler_output.pm | 6 ++++++ make_pretty.pl | 3 +++ 2 files changed, 9 insertions(+) diff --git a/common/parse_compiler_output.pm b/common/parse_compiler_output.pm index 966f1826e..6f2b995a1 100644 --- a/common/parse_compiler_output.pm +++ b/common/parse_compiler_output.pm @@ -155,6 +155,12 @@ sub handle_compiler_output_line($) { return; } + if ($s =~ m/Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy./) { + # Given by Visual Studio 2022 + $self->Output_Normal ($s); + return; + } + if ($s =~ m/possibly used unsafely, use/) { # Similar warnings on NetBSD $self->Output_Normal ($s); diff --git a/make_pretty.pl b/make_pretty.pl index 3eabc26ce..7ccfed52c 100755 --- a/make_pretty.pl +++ b/make_pretty.pl @@ -235,6 +235,9 @@ () # have the word 'error' in the symbol name - ignore those. return 0 if (m/^ld: \d+\-\d+ WARNING: Duplicate symbol:/); + # Given by Visual Studio 2022 + return 0 if (m/Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy./); + # Look for lines that also should be color coded, but not counted # as errors. return 2 if (/Types pointed to are unrelated/