Fix uninitialized variable warning in ostest
In lowpri_thread if sem_wait fail nwaiting will not be set even though the rest of the function uses it. This is a failure so really just handling the compiler warning with this. Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
parent
547bad9e2a
commit
97e487d0d4
@ -253,7 +253,7 @@ static void *lowpri_thread(void *parameter)
|
||||
int count;
|
||||
int policy;
|
||||
int ret;
|
||||
int nwaiting;
|
||||
int nwaiting = 0;
|
||||
int i;
|
||||
|
||||
g_lowstate[threadno-1] = RUNNING;
|
||||
|
Loading…
Reference in New Issue
Block a user