Skip to content

Commit 3b8e2ee

Browse files
committed
Added another diagnostic ID for 'undeclared identifier'
1 parent 162de1d commit 3b8e2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArduinoDiagnosticConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void ArduinoDiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level level,
5555
}
5656

5757
unsigned id = info.getID();
58-
if (id == 3441 /* use of undeclared identifier */) {
58+
if (id == 3441 || id == 3442 /* use of undeclared identifier */) {
5959
// It seems that the only way to retrieve the undeclared symbol
6060
// is to print it as a localization string.
6161
const char *fmt = "%0";

0 commit comments

Comments
 (0)