You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current integration candidate for CFS_CFE includes code
that passes (char const *) pointers as the 2nd and 3rd
parameters to the OS_ModuleLoad() function. In order for this
to compile without warnings, these parameters of this function
need to carry const qualifiers in the header defining the
function and in the function itself.
The function does not modify data pointed at by these
parameters, so the const qualifier is appropriate.
This change does not require changes to callers (but does
allow them to pass pointers to const data).
This change will need to be included in the 2015-03-10
integration candidate synchronized across all projects.
( I thought I had seen a ticket for this, but was unable
to lay hands on it. )
The text was updated successfully, but these errors were encountered:
Ticket #36 is supposed to address this but I had rolled it up with some other stuff. We can keep it as a separate effort though - adding "const" is a good thing by itself and it should be done wherever possible.
I was thinking of adding this to the current integration candidate
but managed to tangle myself up in other related changes. For 2015-03-10
integration candidate, I will just ignore the warning ...
The current integration candidate for CFS_CFE includes code
that passes (char const *) pointers as the 2nd and 3rd
parameters to the OS_ModuleLoad() function. In order for this
to compile without warnings, these parameters of this function
need to carry
const
qualifiers in the header defining thefunction and in the function itself.
The function does not modify data pointed at by these
parameters, so the
const
qualifier is appropriate.This change does not require changes to callers (but does
allow them to pass pointers to
const
data).This change will need to be included in the 2015-03-10
integration candidate synchronized across all projects.
( I thought I had seen a ticket for this, but was unable
to lay hands on it. )
The text was updated successfully, but these errors were encountered: