From 668da74ef1d4558f699374cb28a9df1a011db122 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 7 Jul 2014 09:46:54 -0700 Subject: [PATCH] Use __unused rather than self assignment for unused parameters. Clang, reasonably enough, doesn't like self assignment. Change-Id: Ie5843287802949dad148a1a815231035678e1306 --- libc/bionic/semaphore.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libc/bionic/semaphore.c b/libc/bionic/semaphore.c index 7387d6e1e..1fa019e06 100644 --- a/libc/bionic/semaphore.c +++ b/libc/bionic/semaphore.c @@ -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; }