-
Notifications
You must be signed in to change notification settings - Fork 201
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
DataToCopy argument of CFE_ES_CopyToCDS should be "const" #1726
Comments
Also noted that the SB functions "CFE_SB_TransmitMsg" and "CFE_SB_TransmitMsgValidate" also have a read-only MsgPtr input, these should also be const. |
jphickey
added a commit
to jphickey/cFE
that referenced
this issue
Aug 5, 2021
The following functions have read-only inputs which are passed by pointer, so it should be "const" qualified: CFE_ES_CopyToCDS CFE_SB_TransmitMsg CFE_SB_TransmitMsgValidate
astrogeco
added a commit
that referenced
this issue
Aug 13, 2021
Fix #1726, mark read only inputs as const
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
This pointer argument is read-only, the data is passed to PSP which is (correctly) a
const void*
Describe the solution you'd like
Prototype should be:
Additional context
Should not cause any issue for existing code (OK to pass non-const to const, just not the other way). Making const-correct avoids issue/warning if called from an app using
const
data.Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: