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

Overwriting unused values in variables #128

Closed
skliper opened this issue Sep 30, 2019 · 3 comments
Closed

Overwriting unused values in variables #128

skliper opened this issue Sep 30, 2019 · 3 comments

Comments

@skliper
Copy link
Contributor

skliper commented Sep 30, 2019

As reported by cppcheck performance
applied to the "ic-gll-jsc-merge" branch:

Variable % is reassigned a value before the old one has been used.

This message is present in 17 files:

{{{
osal/src/os/vxworks6/osapi.c
osal/src/os/vxworks6/osnetwork.c
osal/src/tests/mutex-test/mutex-test.c
osal/src/unit-tests-coverage/osapi-test/osapi_testcase_binsem.c
osal/src/unit-tests-coverage/osapi-test/osapi_testcase_queues.c
osal/src/unit-tests-coverage/osapi-test/osapi_testcase_tasks.c
osal/src/unit-tests-coverage/osapi-test/osapi_testcase_time_int.c
osal/src/unit-tests-coverage/osfileapi-test/osfileapi_testcase.c
osal/src/unit-tests-coverage/osfilesys-test/osfilesys_testcase.c
osal/src/unit-tests-coverage/osloader-test/osloader_testcase.c
osal/src/unit-tests-coverage/ostimer-test/ostimer_testcase.c
osal/src/unit-tests/oscore-test/ut_oscore_binsem_test.c
osal/src/unit-tests/oscore-test/ut_oscore_countsem_test.c
osal/src/unit-tests/oscore-test/ut_oscore_mutex_test.c
osal/src/unit-tests/oscore-test/ut_oscore_queue_test.c
osal/src/unit-tests/oscore-test/ut_oscore_task_test.c
osal/src/unit-tests/osfile-test/ut_osfile_dirio_test.c
}}}

Need to examine the fingered bits of code, see if any
of them need fixing, and figure out how to get cppcheck
to be happy.

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Imported from trac issue 105. Created by glimes on 2015-10-20T19:31:52, last modified: 2019-08-14T14:11:46

@skliper skliper self-assigned this Sep 30, 2019
@skliper skliper added the bug label Sep 30, 2019
@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by glimes on 2015-12-22 16:33:44:

see #157 and #158

@skliper skliper removed their assignment Sep 30, 2019
@skliper skliper added this to the 5.1.0 milestone Oct 22, 2019
@skliper skliper added duplicate and removed bug labels Jan 2, 2020
@skliper skliper removed this from the 5.1.0 milestone Jan 2, 2020
@skliper
Copy link
Contributor Author

skliper commented Jan 2, 2020

Related to fixes implemented in #308 and enforced in #314. No current plan to resolve style issues in test code. Closing as duplicate.

@skliper skliper closed this as completed Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant