mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
pthreads: remove some useless variables
This commit is contained in:
@@ -224,7 +224,6 @@ sem_t *sem_open(const char *name, int oflag, ...)
|
||||
{
|
||||
sem_t* sem;
|
||||
va_list arg;
|
||||
mode_t mode;
|
||||
unsigned int value;
|
||||
|
||||
sem = RT_NULL;
|
||||
@@ -234,7 +233,6 @@ sem_t *sem_open(const char *name, int oflag, ...)
|
||||
if (oflag & O_CREAT)
|
||||
{
|
||||
va_start(arg, oflag);
|
||||
mode = (mode_t) va_arg( arg, unsigned int); mode = mode;
|
||||
value = va_arg( arg, unsigned int);
|
||||
va_end(arg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user