Skip to content
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

cppcheck unit test warning #286

Closed
avan989 opened this issue Nov 12, 2019 · 0 comments · Fixed by #292
Closed

cppcheck unit test warning #286

avan989 opened this issue Nov 12, 2019 · 0 comments · Fixed by #292
Milestone

Comments

@avan989
Copy link
Contributor

avan989 commented Nov 12, 2019

Describe the bug
references issue #283

[osal/src/unit-tests/oscore-test/ut_oscore_binsem_test.c:165]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_countsem_test.c:166]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_exception_test.c:173]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_interrupt_test.c:193]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_misc_test.c:173]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_mutex_test.c:166]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_queue_test.c:169]: (error) syntax error
[osal/src/unit-tests/oscore-test/ut_oscore_task_test.c:208]: (error) syntax error
[osal/src/unit-tests/osfile-test/ut_osfile_dirio_test.c:208]: (error) syntax error
[osal/src/unit-tests/osfile-test/ut_osfile_fileio_test.c:304]: (error) syntax error
[osal/src/unit-tests/osfilesys-test/ut_osfilesys_diskio_test.c:220]: (error) syntax error
[osal/src/unit-tests/osloader-test/ut_osloader_module_test.c:167]: (error) syntax error
[osal/src/unit-tests/osloader-test/ut_osloader_symtable_test.c:158]: (error) syntax error
[osal/src/unit-tests/osnetwork-test/ut_osnetwork_misc_test.c:181]: (error) syntax error
[osal/src/unit-tests/osprintf-test/ut_osprintf_misc.c:74]: (error) sprintf format string requires 1 parameter but only 0 are given.
[osal/src/unit-tests/osprintf-test/ut_osprintf_misc.c:81]: (error) snprintf format string requires 1 parameter but only 0 are given.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:394]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:417]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:443]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:469]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:494]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:508]: (error) va_list 'varg' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:522]: (error) va_list 'varg' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:537]: (error) va_list 'varg' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:552]: (error) va_list 'ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:565]: (error) va_list 'ap' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:584]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/osprintf-test/ut_osprintf_offset.c:607]: (error) va_list 'Ptr' used before va_start() was called.
[osal/src/unit-tests/ostimer-test/ut_ostimer_timerio_test.c:206]: (error) syntax error

Reporter Info
Anh Van, NASA Goddard

skliper added a commit that referenced this issue Nov 15, 2019
Fixes #286, fixes #280
Code reviewed and approved at 20191106 CCB
@skliper skliper added this to the 5.1.0 milestone Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants