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:
Brennan Ashton 2020-04-29 21:52:25 -07:00 committed by Xiang Xiao
parent 547bad9e2a
commit 97e487d0d4

View File

@ -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;