aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-07-18 16:51:08 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-07-19 17:45:45 +1000
commit648c7cfd4c0d94a17a51a94afc5f7da60b7b2898 (patch)
tree20e8256bf210a5fdc122458e78d6044df0e675f2 /Makefile.main
parent9570730f5f8506126cc56efb591cfe370b8c63e2 (diff)
downloadskiboot-648c7cfd4c0d94a17a51a94afc5f7da60b7b2898.zip
skiboot-648c7cfd4c0d94a17a51a94afc5f7da60b7b2898.tar.gz
skiboot-648c7cfd4c0d94a17a51a94afc5f7da60b7b2898.tar.bz2
Silence sparse warning for version.c
version.c:1:12: warning: symbol 'version' was not declared. Should it be static? Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index fac6e44..56fa2ba 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -303,6 +303,7 @@ version.c: $(SRC)/make_version.sh $(OBJS_NO_VER) .version
@(if [ "a$(VERSION)" = "a" ]; then \
echo "#error You need to set SKIBOOT_VERSION environment variable" > $@ ;\
else \
+ echo "extern const char version[];"; \
echo "const char version[] = \"$(VERSION)\";" ;\
fi) > $@