gfxstream: mark unused variables as such

It's unclear to me whether this is dead code that should be removed or
dead code that should be used, so I just marked it as unused to remove
a few thousand warnings when compiling.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33384>
This commit is contained in:
Eric Engestrom
2025-02-04 19:57:33 +01:00
committed by Marge Bot
parent b2b37cb1de
commit 93a720f81a
2 changed files with 2 additions and 0 deletions
@@ -78,6 +78,7 @@ class VulkanCountingCodegen(VulkanTypeIterator):
makeVulkanTypeSimple(False, "uint64_t", 1, paramName=handle64Var)
else:
self.cgen.stmt("uint64_t %s" % handle64Var)
self.cgen.stmt("(void)%s" % handle64Var)
handle64VarAccess = "&%s" % handle64Var
handle64VarType = \
makeVulkanTypeSimple(False, "uint64_t", 0, paramName=handle64Var)
@@ -195,6 +195,7 @@ class VulkanMarshalingCodegen(VulkanTypeIterator):
checkName = "check_%s" % vulkanType.paramName
self.cgen.stmt("%s %s" % (
self.cgen.makeCTypeDecl(vulkanType, useParamName = False), checkName))
self.cgen.stmt("(void)%s" % checkName)
checkAccess = checkName
addrExpr = "&" + checkAccess
sizeExpr = self.cgen.sizeofExpr(vulkanType)