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 #803, Add check of semaphore to avoid unreachable code in posix OS_BinSemCreate_Impl #804

Merged

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Feb 11, 2021

Describe the contribution
Fix #803 - adds a check to send the semaphore to avoid unreachable code, basically a non-op placeholder to avoid refactoring unreachable code which would make it less future-proof

Testing performed
Build and execute unit tests, passed

Expected behavior changes
None, avoids static analysis warning and uncoverable code

System(s) tested on

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

Additional context
Eventually when coverage is added to posix this will help meet the 100% goal

Third party code
None

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

@skliper skliper added this to the 6.0.0 milestone Feb 11, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate February 12, 2021 20:39
@astrogeco astrogeco merged commit f237243 into nasa:integration-candidate Feb 12, 2021
@skliper skliper deleted the fix803-unreachable_binsemcreate branch April 1, 2021 20:07
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreachable code in posix OS_BinSemCreate_Impl
3 participants