You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar in bin-sem-timeout-test.c and bin-sem-test.c
Describe the solution you'd like
Preference is to implement a style such that it's easy to differentiate global vs local variables (local lower case, global camel or similar) or put global variables in a structure (easy to init/clear).
Describe alternatives you've considered
None
Additional context
CodeQL warning
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered:
skliper
changed the title
Local variable hides global in queue-test.c
Local variable hides global in queue-test.c, bin-sem-timeout-test.c, bin-sem-test.c
Feb 9, 2021
zanzaben
added a commit
to zanzaben/osal
that referenced
this issue
Feb 10, 2021
Is your feature request related to a problem? Please describe.
osal/src/tests/queue-test/queue-test.c
Line 56 in 09a2c5e
osal/src/tests/queue-test/queue-test.c
Line 61 in 09a2c5e
Similar in bin-sem-timeout-test.c and bin-sem-test.c
Describe the solution you'd like
Preference is to implement a style such that it's easy to differentiate global vs local variables (local lower case, global camel or similar) or put global variables in a structure (easy to init/clear).
Describe alternatives you've considered
None
Additional context
CodeQL warning
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: