-
Notifications
You must be signed in to change notification settings - Fork 202
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
issue #425, resolve cpp check #432
Conversation
fsw/cfe-core/src/sb/cfe_sb_util.c
Outdated
/* cppcheck-suppress unusedVariable */ | ||
uint16 size; | ||
|
||
#ifdef MESSAGE_FORMAT_IS_CCSDS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can suppression be removed if uint16 size;
is inside #ifdef
?
fsw/cfe-core/src/sb/cfe_sb_priv.c
Outdated
/* cppcheck-suppress unreadVariable */ | ||
CFE_SB_MsgId_Atom_t Val = MsgId; | ||
|
||
#ifdef MESSAGE_FORMAT_IS_CCSDS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can suppression be removed if line is moved within ifdef?
fsw/cfe-core/src/sb/cfe_sb_init.c
Outdated
/* cppcheck-suppress unusedVariable */ | ||
CFE_SB_MsgKey_Atom_t KeyVal; | ||
|
||
#ifdef MESSAGE_FORMAT_IS_CCSDS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can suppression be removed if line is within ifdef?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Always prefer initializing variables at declaration time.
updated. |
CCB 20190108 - Reviewed and approved for integration candidate |
Describe the contribution
resolve cpp check
Testing performed
Steps taken to test the contribution:
System(s) tested on:
Additional context
Add any other context about the contribution here.
Contributor Info
Anh Van, NASA Goddard