Skip to content

Commit cb86b31

Browse files
authored
Merge pull request #140 from myc-yang/9-fix-ignored-return-value-fm-table-utils
Fix #139, Suppressed ignored return value warning for CFE_TBL_Load() in FM_TableInit()
2 parents 2f53b1c + 823b5f1 commit cb86b31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fsw/src/fm_table_utils.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ CFE_Status_t FM_TableInit(void)
5555
if (Status == CFE_SUCCESS)
5656
{
5757
/* Make an attempt to load the default table data - OK if this fails */
58-
CFE_TBL_Load(FM_AppData.MonitorTableHandle, CFE_TBL_SRC_FILE, FM_TABLE_DEF_NAME);
58+
/* SAD: Suppress Ignored Return Value warning from CodeSonar. CFE_TBL_Load() will send event message if
59+
* there is any error */
60+
(void)CFE_TBL_Load(FM_AppData.MonitorTableHandle, CFE_TBL_SRC_FILE, FM_TABLE_DEF_NAME);
5961

6062
/* Allow cFE a chance to dump, update, etc. */
6163
FM_AcquireTablePointers();

0 commit comments

Comments
 (0)