-
Notifications
You must be signed in to change notification settings - Fork 217
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 #1141, add typecast to memchr call #1142
Fix #1141, add typecast to memchr call #1142
Conversation
This function is documented as returning `void*`, and on some compilers this requires an explicit cast to `const char*` to avoid a warning.
After further consideration, I think the reason this warning got tripped is because the function in question is an inline, and in the proposed code change it was possibly included from a C++ source file. A void conversion like this is valid in C but in C++ requires a cast. Nonetheless, this makes the headers C++ compliant so still a valid thing to add. |
Do we want to do a "co-authored by" credit? |
Doesn't matter to me. Don't make more work than necessary. |
CCB:2021-09-08 APPROVED |
nasa/osal#1142, Add typecast to memchr call
nasa/osal#1144, Regex update in coverage enforcement to match .0 nasa/osal#1142, Add typecast to memchr call
**Combines** nasa/cFE#1939, v6.8.0-rc1+dev994 nasa/osal#1145, v5.1.0-rc1+dev604 nasa/PSP#307, v1.5.0-rc1+dev124 nasa/sch_lab#87, v2.4.0-rc1+dev47 **Includes** *cFE* nasa/cFE#1903, Update directory diagrams in application developer guide nasa/cFE#1922, SB code coverage improvements #1905, Improve SB coverage nasa/cFE#1936, Improve ES code coverage nasa/cFE#1938, Enforce minimum code coverage nasa/cFE#1940, Update dev guide for MSG and SBR nasa/cFE#1941, Support unimplemented features in MSG FT *osal* nasa/osal#1144, Regex update in coverage enforcement to match .0 nasa/osal#1142, Add typecast to memchr call *psp* nasa/PSP#307, check that module type is not invalid nasa/PSP#306, do not override add_psp_module for coverage test *sch_lab* nasa/sch_lab#86, add CmdCode to sch_lab_table nasa/sch_lab#88, Fix missing typedef Co-authored-by: Jacob Hageman <skliper@users.noreply.github.com> Co-authored-by: Joseph Hickey <jphickey@users.noreply.github.com> Co-authored-by: Ariel Adams <ArielSAdamsNASA@users.noreply.github.com> Co-authored-by: Jose F Martinez Pedraza <pepepr08@users.noreply.github.com>
Fix nasa#1141, pipe name unset
Describe the contribution
This function is documented as returning
void*
, and on some compilers this requires an explicit cast toconst char*
to avoid a warning.Fixes #1141
Testing performed
Build and sanity check CFE
Expected behavior changes
None
System(s) tested on
Ubuntu
Additional context
Isolated from draft contribution from @thesamprice in #1140
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.