Skip to content

Commit

Permalink
Fix nasa#711, cppcheck modules and fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 11, 2020
1 parent 6c4958f commit ff5f19b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ script:
# Check versions
- cppcheck --version

#cppcheck flight software cfe/fsw/cfe-core/src
- cppcheck --force --inline-suppr --std=c99 --language=c --error-exitcode=1 --enable=warning,performance,portability,style --suppress=variableScope --inconclusive fsw/cfe-core/src 2>cppcheck_flight_cfe.txt
#cppcheck flight software fsw/cfe-core/src and modules
- cppcheck --force --inline-suppr --std=c99 --language=c --error-exitcode=1 --enable=warning,performance,portability,style --suppress=variableScope --inconclusive fsw/cfe-core/src modules 2>cppcheck_flight_cfe.txt
- |
if [[ -s cppcheck_flight_cfe.txt ]]; then
echo "You must fix cppcheck errors before submitting a pull request"
Expand Down
2 changes: 1 addition & 1 deletion modules/msg/unit-test-coverage/test_cfe_msg_ccsdsext.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void Test_MSG_Init_Ext(void)
ASSERT_EQ(CFE_MSG_GetEndian(&msg, &endian), CFE_SUCCESS);
#if (CFE_PLATFORM_ENDIAN == CCSDS_LITTLE_ENDIAN)
ASSERT_EQ(endian, CFE_MSG_Endian_Little);
#elif
#else
ASSERT_EQ(endian, CFE_MSG_Endian_Big);
#endif

Expand Down

0 comments on commit ff5f19b

Please sign in to comment.