aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-20 14:30:12 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-20 14:32:26 +0100
commit28efc357c97933160476b551f1376b30befadabc (patch)
treea4fa881166e8eb49c18f6577c4845fcb4c0a1743
parent937d5256228cd9acc1ff7261303854599d2a1454 (diff)
downloadsyslinux-28efc357c97933160476b551f1376b30befadabc.tar.gz
syslinux-28efc357c97933160476b551f1376b30befadabc.tar.xz
syslinux-28efc357c97933160476b551f1376b30befadabc.zip
efi: return a value from sem_down()
GCC is rightly complaining that we aren't returning a value from sem_down() like we should be, efi/main.c: In function ‘sem_down’: efi/main.c:174:1: warning: control reaches end of non-void function [-Wreturn-type] It doesn't really matter what value we return because the return value is only used in core/thread which EFI doesn't need. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--efi/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/efi/main.c b/efi/main.c
index 5d71b398..727cfae0 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -172,6 +172,7 @@ struct semaphore;
mstime_t sem_down(struct semaphore *sem, mstime_t time)
{
/* EFI is single threaded */
+ return 0;
}
void sem_up(struct semaphore *sem)