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 #1074, Refactor CFE_TIME_RegisterSynchCallback #1075

Merged

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Jan 7, 2021

Describe the contribution
Fix #1074

  • One return point
  • Eliminates "possible uninitialized variable" static analysis warning

Testing performed
Standard build, unit test

Expected behavior changes
None except eliminates static analysis warning

System(s) tested on

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: Bundle main + this commit

Additional context
Partially just a conversation starter - do we want to avoid (invalid) warnings w/ similar refactors? Alternatively we could just ignore/repress the warnings.

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

- One return point
- Eliminates "possible uninitialized variable" static
analysis warning
@skliper skliper added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 7, 2021
@astrogeco
Copy link
Contributor

CCB:2021-01-13 APPROVED

Replaces multiple returns with an "if tree" fixes some static code analysis complaints.

@astrogeco astrogeco added CCB:2021-01-13 and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 13, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate January 25, 2021 03:16
@astrogeco astrogeco merged commit c9f9d42 into nasa:integration-candidate Jan 25, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 25, 2021
@skliper skliper deleted the fix1074-multiple_returns branch February 1, 2021 22:05
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
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.

Avoid multiple returns and possible uninitialized variable warning in CFE_TIME_RegisterSynchCallback
2 participants