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 #1322, add BUGCHECK_VOID macro #1323

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

jphickey
Copy link
Contributor

Checklist (Please check before submitting)

Describe the contribution
Adds a variant of the BUGCHECK macro that has no return value argument, which can be used in functions with no return value without the unusual syntax appearing in the code.

Fixes #1322

Testing performed
Basic build and run tests
Run cppcheck against source

Expected behavior changes
Cppcheck does not report a syntax error

System(s) tested on
Ubuntu 22.04 (using cppcheck v2.7)

Additional context
Just a wrapper macro is enough to satisfy cppcheck. Added a note that the missing second argument (return value) is intentional on a void function.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Adds a variant of the BUGCHECK macro that has no return value argument,
which can be used in functions with no return value without the unusual
syntax appearing in the code.
@jphickey jphickey requested a review from dzbaker October 28, 2022 13:54
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Oct 28, 2022
@dzbaker dzbaker added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Nov 3, 2022
dzbaker added a commit to nasa/cFS that referenced this pull request Nov 14, 2022
*Combines:*

cfe v7.0.0-rc4+dev205
osal v6.0.0-rc4+dev151
cFS-GroundSystem v3.0.0-rc4+dev39

**Includes:**

*cFS*
- #608

*cFE*
- nasa/cFE#2197

*osal*
- nasa/osal#1323

*cFS-GroundSystem*
- nasa/cFS-GroundSystem#217
- nasa/cFS-GroundSystem#230

Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored-by: Avi Weiss <thnkslprpt@users.noreply.github.com>
Co-authored-by: Paul Ober <paulober@users.noreply.github.com>
@dzbaker dzbaker merged commit f675d82 into nasa:main Nov 14, 2022
dzbaker added a commit to nasa/cFS that referenced this pull request Nov 14, 2022
*Combines:*

cfe v7.0.0-rc4+dev205
osal v6.0.0-rc4+dev151
cFS-GroundSystem v3.0.0-rc4+dev39

**Includes:**

*cFS*
- #608

*cFE*
- nasa/cFE#2197

*osal*
- nasa/osal#1323

*cFS-GroundSystem*
- nasa/cFS-GroundSystem#217
- nasa/cFS-GroundSystem#230

Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored-by: Avi Weiss <thnkslprpt@users.noreply.github.com>
Co-authored-by: Paul Ober <paulober@users.noreply.github.com>
@jphickey jphickey deleted the fix-1322-bugcheck-void branch December 8, 2022 22:07
@dmknutsen dmknutsen added this to the Draco milestone Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB draco-rc4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cppcheck flagging BUGCHECK macro as syntax error
3 participants