From a38a4fb21d7925e8cee46923bff0500ed7f7856e Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 14 Jun 2024 00:06:00 -0700 Subject: Make unknown attributes a warning instead of an error. (#4391) --- source/slang/slang-diagnostic-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-diagnostic-defs.h b/source/slang/slang-diagnostic-defs.h index e0d818c97..e27e40c59 100644 --- a/source/slang/slang-diagnostic-defs.h +++ b/source/slang/slang-diagnostic-defs.h @@ -393,7 +393,7 @@ DIAGNOSTIC(36109, Error, invalidTargetSwitchCase, "'$0' cannot be used as a targ DIAGNOSTIC(36110, Error, stageIsInCompatibleWithCapabilityDefinition, "'$0' is defined for stage '$1', which is incompatible with the declared capability set '$2'.") // Attributes -DIAGNOSTIC(31000, Error, unknownAttributeName, "unknown attribute '$0'") +DIAGNOSTIC(31000, Warning, unknownAttributeName, "unknown attribute '$0'") DIAGNOSTIC(31001, Error, attributeArgumentCountMismatch, "attribute '$0' expects $1 arguments ($2 provided)") DIAGNOSTIC(31002, Error, attributeNotApplicable, "attribute '$0' is not valid here") -- cgit v1.2.3