summaryrefslogtreecommitdiffstats
path: root/src/include/compiler.h
diff options
context:
space:
mode:
authorMichael Brown2013-04-25 16:14:59 +0200
committerMichael Brown2013-04-25 16:14:59 +0200
commiteaa0f47dc2d59a09c764773e44b6415fc1f507af (patch)
tree9952344ce8d2e6e2444a30befd18d6c6f34fe613 /src/include/compiler.h
parent[build] Allow sparse to be invoked via "make C=1" (diff)
downloadipxe-eaa0f47dc2d59a09c764773e44b6415fc1f507af.tar.gz
ipxe-eaa0f47dc2d59a09c764773e44b6415fc1f507af.tar.xz
ipxe-eaa0f47dc2d59a09c764773e44b6415fc1f507af.zip
[build] Avoid sparse undeclared symbol warning for PROVIDE_SYMBOL()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r--src/include/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index ed9af237..e5559245 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -64,6 +64,7 @@
.comm _sym, 0
#else /* ASSEMBLY */
#define PROVIDE_SYMBOL( _sym ) \
+ extern char _sym[]; \
char _sym[0]
#endif /* ASSEMBLY */