Skip to content

Commit a38a4fb

Browse files
authored
Make unknown attributes a warning instead of an error. (shader-slang#4391)
1 parent a210091 commit a38a4fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/slang-diagnostic-defs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ DIAGNOSTIC(36109, Error, invalidTargetSwitchCase, "'$0' cannot be used as a targ
393393
DIAGNOSTIC(36110, Error, stageIsInCompatibleWithCapabilityDefinition, "'$0' is defined for stage '$1', which is incompatible with the declared capability set '$2'.")
394394

395395
// Attributes
396-
DIAGNOSTIC(31000, Error, unknownAttributeName, "unknown attribute '$0'")
396+
DIAGNOSTIC(31000, Warning, unknownAttributeName, "unknown attribute '$0'")
397397
DIAGNOSTIC(31001, Error, attributeArgumentCountMismatch, "attribute '$0' expects $1 arguments ($2 provided)")
398398
DIAGNOSTIC(31002, Error, attributeNotApplicable, "attribute '$0' is not valid here")
399399

0 commit comments

Comments
 (0)