Skip to content

Commit c781e85

Browse files
committed
fixed unused argument warning in read()
1 parent befd9d9 commit c781e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ void ${name}::read(<#rt>
701701
<#if isPackable && usedInPackedArray>
702702

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

0 commit comments

Comments
 (0)