summaryrefslogtreecommitdiffstats
path: root/source/slang
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-06-13 23:17:25 -0400
committerGitHub <noreply@github.com>2024-06-13 20:17:25 -0700
commita6b8348f69a4cd1ab1edbc1ccf1133c807b81b5b (patch)
tree33563ccd289b98490da99e0da3d298b8458ceff8 /source/slang
parentcfef0c6f66c9d36ae2899c8c2790c3fe422a7700 (diff)
fix the clang/gcc warning (#4382)
* fix the clang/gcc warning * use macro for maybe unused * (code style) macro to start of function --------- Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com>
Diffstat (limited to 'source/slang')
-rw-r--r--source/slang/slang-capability.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-capability.cpp b/source/slang/slang-capability.cpp
index 2c3069f61..3739d46c2 100644
--- a/source/slang/slang-capability.cpp
+++ b/source/slang/slang-capability.cpp
@@ -192,6 +192,8 @@ CapabilityAtom getStageAtomInSet(const CapabilityAtomSet& atomSet)
template<CapabilityName keyholeAtomToPermuteWith>
void CapabilitySet::addPermutationsOfConjunctionForEachInContainer(CapabilityAtomSet& setToPermutate, const CapabilityAtomSet& elementsToPermutateWith, CapabilityAtom knownTargetAtom, CapabilityAtom knownStageAtom)
{
+ SLANG_UNUSED(knownTargetAtom);
+ SLANG_UNUSED(knownStageAtom);
for(auto i : elementsToPermutateWith)
{
CapabilityName atom = (CapabilityName)i;