Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve warning array of size zero #368

Merged
merged 11 commits into from
Jan 18, 2024

Conversation

SMorettini
Copy link
Contributor

@SMorettini SMorettini commented Dec 20, 2023

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 bocchino self-requested a review January 3, 2024 17:10
Copy link
Collaborator

@bocchino bocchino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please see the comment.

@SMorettini SMorettini requested a review from bocchino January 14, 2024 16:03
@bocchino
Copy link
Collaborator

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

@bocchino bocchino merged commit 10fcded into nasa:main Jan 18, 2024
@SMorettini SMorettini deleted the Resolve-Warning-array-of-size-zero branch January 19, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants