[syslinux:firmware] efi: forward declare 'struct semaphore'

syslinux-bot for Matt Fleming matt.fleming at intel.com
Thu Jun 20 06:51:24 PDT 2013


Commit-ID:  2fb30e8bbc00bef4d8e45f5a1f90596bee60dcc5
Gitweb:     http://www.syslinux.org/commit/2fb30e8bbc00bef4d8e45f5a1f90596bee60dcc5
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 19 Jun 2013 17:20:12 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 19 Jun 2013 17:21:51 +0100

efi: forward declare 'struct semaphore'

We don't need to include thread.h because struct semaphore is never
actually used in the EFI code.

Fixes,

efi/main.c:171:26: warning: ‘struct semaphore’ declared inside parameter list [enabled by default]
efi/main.c:171:26: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 efi/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/efi/main.c b/efi/main.c
index 19f8b38..e6095fc 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -168,6 +168,7 @@ void pxe_int1a(void)
 
 uint8_t KeepPXE;
 
+struct semaphore;
 mstime_t sem_down(struct semaphore *sem, mstime_t time)
 {
 	/* EFI is single threaded */


More information about the Syslinux-commits mailing list