From 8b2b79c2108b6ef94247b14f68710b7cbee42aec Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 6 Jun 2019 10:26:32 +1000 Subject: [PATCH] Cleanup: quiet missing variable declaration warning --- source/creator/buildinfo.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source/creator/buildinfo.c b/source/creator/buildinfo.c index 7843a25c037..c476694e4b5 100644 --- a/source/creator/buildinfo.c +++ b/source/creator/buildinfo.c @@ -27,7 +27,21 @@ #ifdef BUILD_DATE -/* currently only these are defined in the header */ +extern char build_date[]; +extern char build_time[]; +extern char build_hash[]; +extern unsigned long build_commit_timestamp; +extern char build_commit_date[]; +extern char build_commit_time[]; +extern char build_branch[]; +extern char build_platform[]; +extern char build_type[]; +extern char build_cflags[]; +extern char build_cxxflags[]; +extern char build_linkflags[]; +extern char build_system[]; + +/* Currently only these are defined in the header. */ char build_date[] = BUILD_DATE; char build_time[] = BUILD_TIME; char build_hash[] = BUILD_HASH;