Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
88d81a96
Commit
88d81a96
authored
Oct 12, 2020
by
Thanassis Tsiodras
Committed by
Thanassis Tsiodras
Nov 17, 2020
Browse files
Appease more 'unused parameter' warnings.
parent
44519af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/synchronousTool.py
View file @
88d81a96
...
...
@@ -298,7 +298,10 @@ class SynchronousToolGlueGeneratorGeneric(Generic[TSource, TDestin]):
self
.
C_SourceFile
.
write
(
" int errorCode;
\n
"
)
self
.
C_SourceFile
.
write
(
" STATIC BitStream strm;
\n\n
"
)
# setup the asn1c encoder
self
.
C_SourceFile
.
write
(
" (void)iMaxBufferSize;
\n
"
)
self
.
C_SourceFile
.
write
(
" BitStream_Init(&strm, pBuffer, iMaxBufferSize);
\n
"
)
else
:
self
.
C_SourceFile
.
write
(
" (void)iMaxBufferSize;
\n
"
)
# Write the mapping code for the message
if
self
.
useOSS
and
encoding
.
lower
()
==
"uper"
:
...
...
@@ -446,6 +449,7 @@ class SynchronousToolGlueGeneratorGeneric(Generic[TSource, TDestin]):
self
.
CleanNameAsToolWants
(
nodeTypename
)))
self
.
C_SourceFile
.
write
(
" /* Decoding succeeded */
\n
"
)
elif
encoding
.
lower
()
==
"native"
:
self
.
C_SourceFile
.
write
(
" (void) iBufferSize;
\n
"
)
self
.
C_SourceFile
.
write
(
" var_%s = *(asn1Scc%s *) pBuffer;
\n
{
\n
"
%
(
self
.
CleanNameAsToolWants
(
nodeTypename
),
self
.
CleanNameAsToolWants
(
nodeTypename
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment