tuxji commented on code in PR #1121:
URL: https://github.com/apache/daffodil/pull/1121#discussion_r1399940515
##########
daffodil-codegen-c/src/main/scala/org/apache/daffodil/codegen/c/DaffodilCCodeGenerator.scala:
##########
@@ -275,6 +276,7 @@ object DaffodilCCodeGenerator
case g: ElementParseAndUnspecifiedLength =>
elementParseAndUnspecifiedLengthGenerateCode(g, cgState)
case g: ElementUnused => noop(g)
+ case g: Gram if g eq EmptyGram => noop(g)
Review Comment:
Thanks, I have improved the fix as suggested and added a new test case with
a test schema containing an empty gram. Ready for review again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]