Use __unused rather than self assignment for unused parameters.

Clang, reasonably enough, doesn't like self assignment.

Change-Id: Ie5843287802949dad148a1a815231035678e1306
This commit is contained in:
Elliott Hughes 2014-07-07 09:46:54 -07:00
parent 1f262b35fe
commit 668da74ef1

View File

@ -126,11 +126,8 @@ int sem_destroy(sem_t *sem)
}
sem_t *sem_open(const char *name, int oflag, ...)
sem_t *sem_open(const char *name __unused, int oflag __unused, ...)
{
name=name;
oflag=oflag;
errno = ENOSYS;
return SEM_FAILED;
}