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

Fix pedantic warning on assert macro #2436

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

JohanBertrand
Copy link
Contributor

@JohanBertrand JohanBertrand commented Dec 17, 2023

Related Issue(s) #2409
Has Unit Tests (y/n) y
Documentation Included (y/n) y

Change Description

Fix the pedantic warning due to empty variadic variables in the assert macro.

Also cleaned some of the code in Assert.cpp to avoid repeated code.

Rationale

The new definition is fully compatible with the previous implementation and should solve the issue mentioned in #2409

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Copy link
Collaborator

@timcanham timcanham 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 to me. We'll put multiple eyes on it since it is core code, but good work!

@LeStarch LeStarch merged commit 1e96e67 into nasa:devel Dec 20, 2023
34 checks passed
@JohanBertrand JohanBertrand deleted the fix-pedantic-warning-on-assert branch April 29, 2024 22:10
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.

4 participants