Commit 85b513a7 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Appease static analysis about unused variables (in NATIVE encodings)

parent 6665e063
......@@ -271,7 +271,7 @@ class C_GlueGenerator(ASynchronousToolGlueGenerator):
self.C_HeaderFile.write("#endif\n\n")
self.C_SourceFile.write(needDefine)
self.C_SourceFile.write(
"size_t %s(void *pBuffer, size_t iMaxBufferSize, %sasn1Scc%s *pSrc)\n{\n" %
"size_t %s(void *pBuffer, size_t iMaxBufferSize, %sasn1Scc%s *pSrc)\n{\n (void)iMaxBufferSize;\n" %
(tmpSpName, "" if encoding.lower() == "acn" else "const ",
self.CleanNameAsToolWants(nodeTypename)))
......@@ -356,7 +356,7 @@ class C_GlueGenerator(ASynchronousToolGlueGenerator):
self.C_HeaderFile.write("#endif\n\n")
self.C_SourceFile.write(needDefine)
self.C_SourceFile.write(
"int %s(asn1Scc%s *pDst, void *pBuffer, size_t iBufferSize)\n{\n" %
"int %s(asn1Scc%s *pDst, void *pBuffer, size_t iBufferSize)\n{\n (void)iBufferSize;\n" %
(tmpSpName, self.CleanNameAsToolWants(nodeTypename)))
if self.useOSS and encoding.lower() == "uper":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment