Skip to content

Commit 6c86e31

Browse files
committed
fix union error - unused argument in read()
1 parent 487a798 commit 6c86e31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/extensions/cpp/freemarker/Union.cpp.ftl

+3-2
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ ${I}break;</#if>
664664
</#macro>
665665
<#-- -->
666666
void ${name}::read(<#rt>
667-
::zserio::BitStreamReader& in<#rt>
667+
::zserio::BitStreamReader&<#if fieldList?has_content> in</#if><#rt>
668668
<#if parameterArgs(true)?has_content>, ${parameterArgs(true)}</#if><#rt>
669669
, const allocator_type&<#if read_needs_allocator(compoundConstructorsData.fieldList)> allocator</#if>)
670670
{
@@ -701,7 +701,8 @@ void ${name}::read(<#rt>
701701
<#if isPackable && usedInPackedArray>
702702

703703
void ${name}::read(<#rt>
704-
${name}::ZserioPackingContext& context, ::zserio::BitStreamReader& in<#rt>
704+
${name}::ZserioPackingContext& context<#rt>
705+
, ::zserio::BitStreamReader&<#if fieldList?has_content> in</#if><#rt>
705706
<#if parameterArgs(true)?has_content>, ${parameterArgs(true)}</#if><#rt>
706707
, const allocator_type&<#if read_needs_allocator(compoundConstructorsData.fieldList)> allocator</#if>)
707708
{

0 commit comments

Comments
 (0)