Skip to content

Fix #1322, add BUGCHECK_VOID macro#1323

Merged
dzbaker merged 1 commit intonasa:mainfrom
jphickey:fix-1322-bugcheck-void
Nov 14, 2022
Merged

Fix #1322, add BUGCHECK_VOID macro#1323
dzbaker merged 1 commit intonasa:mainfrom
jphickey:fix-1322-bugcheck-void

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 <[email protected]>
Co-authored-by: Avi Weiss <[email protected]>
Co-authored-by: Paul Ober <[email protected]>
@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 <[email protected]>
Co-authored-by: Avi Weiss <[email protected]>
Co-authored-by: Paul Ober <[email protected]>
@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