Browse Source

[build] Avoid sparse undeclared symbol warning for PROVIDE_SYMBOL()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
eaa0f47dc2
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/include/compiler.h

+ 1
- 0
src/include/compiler.h View File

@@ -64,6 +64,7 @@
64 64
 	.comm	_sym, 0
65 65
 #else /* ASSEMBLY */
66 66
 #define PROVIDE_SYMBOL( _sym )				\
67
+	extern char _sym[];				\
67 68
 	char _sym[0]
68 69
 #endif /* ASSEMBLY */
69 70
 

Loading…
Cancel
Save