summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-06-14 00:06:00 -0700
committerGitHub <noreply@github.com>2024-06-14 00:06:00 -0700
commita38a4fb21d7925e8cee46923bff0500ed7f7856e (patch)
tree090c9f842a365bef5366ec778dae71cc51d80527 /source
parenta210091c2c3eb572183b6e76ed4069347a5b6a99 (diff)
Make unknown attributes a warning instead of an error. (#4391)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-diagnostic-defs.h2
1 files changed, 1 insertions, 1 deletions
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")