realtime_sem: fixed a compiler warning.
* the variable is initialized anyway on the success code path.
This commit is contained in:
parent
986b702f54
commit
c4a8ae38d4
@ -946,7 +946,7 @@ _user_realtime_sem_open(const char* userName, int openFlagsOrShared,
|
||||
|
||||
// open the semaphore
|
||||
sem_t* usedUserSem;
|
||||
bool created;
|
||||
bool created = false;
|
||||
int32_t id;
|
||||
error = context->OpenSem(name, openFlagsOrShared, mode, semCount, userSem,
|
||||
usedUserSem, id, created);
|
||||
|
Loading…
Reference in New Issue
Block a user