diff --git a/src/gfxstream/codegen/scripts/cereal/counting.py b/src/gfxstream/codegen/scripts/cereal/counting.py index 08504fe0a98..2738f0d8bdd 100644 --- a/src/gfxstream/codegen/scripts/cereal/counting.py +++ b/src/gfxstream/codegen/scripts/cereal/counting.py @@ -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) diff --git a/src/gfxstream/codegen/scripts/cereal/marshaling.py b/src/gfxstream/codegen/scripts/cereal/marshaling.py index 800552ad901..01a41bbe9ee 100644 --- a/src/gfxstream/codegen/scripts/cereal/marshaling.py +++ b/src/gfxstream/codegen/scripts/cereal/marshaling.py @@ -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)