Skip to content

Commit 16a2082

Browse files
authored
Merge pull request #82 from jwillemsen/jwi-vs2022
vs2022 has a message which is not an error
2 parents 7e6a74a + 664938b commit 16a2082

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

common/parse_compiler_output.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ sub handle_compiler_output_line($) {
155155
return;
156156
}
157157

158+
if ($s =~ m/Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy./) {
159+
# Given by Visual Studio 2022
160+
$self->Output_Normal ($s);
161+
return;
162+
}
163+
158164
if ($s =~ m/possibly used unsafely, use/) {
159165
# Similar warnings on NetBSD
160166
$self->Output_Normal ($s);

make_pretty.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ ()
235235
# have the word 'error' in the symbol name - ignore those.
236236
return 0 if (m/^ld: \d+\-\d+ WARNING: Duplicate symbol:/);
237237
238+
# Given by Visual Studio 2022
239+
return 0 if (m/Structured output is enabled. The formatting of compiler diagnostics will reflect the error hierarchy./);
240+
238241
# Look for lines that also should be color coded, but not counted
239242
# as errors.
240243
return 2 if (/Types pointed to are unrelated/

0 commit comments

Comments
 (0)