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