nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
49 stars 31 forks source link

Resolve warning array of size zero #368

Closed SMorettini closed 9 months ago

SMorettini commented 10 months ago

Problem

In BuffUnion arrays of size zero were created. This is bad practice and it can create warnings when compiling

Solution

If a port has no parameter no array is added related to that port in the BuffUnion

bocchino commented 9 months ago

Looks good! I refactored the code a bit and addressed the case of internal ports with no formal parameters.