Skip to content

Commit bca61db

Browse files
authored
[SYCL][Fusion][NIT] Add maybe_unused attribute to argument (#13013)
Add attribute to argument only used in an assertion. Signed-off-by: Victor Perez <[email protected]>
1 parent 0959d5a commit bca61db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl-fusion/passes/target/TargetFusionInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class SPIRVTargetFusionInfo : public TargetFusionInfoImpl {
375375
}
376376

377377
Value *getGlobalIDWithoutOffset(IRBuilderBase &Builder,
378-
const NDRange &FusedNDRange,
378+
[[maybe_unused]] const NDRange &FusedNDRange,
379379
uint32_t Idx) const override {
380380
// The SPIR-V target only remaps IDs (and thus queries this method) if no
381381
// global offset is given.

0 commit comments

Comments
 (0)