From e179a4432343914868410227a98157b90e82a93a Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 27 Apr 2024 19:29:30 -0700 Subject: [PATCH 1/2] maint: pacify GCC 14 -Wmissing-variable-declarations, part 1 * src/local.mk: Add an extern decl for 'Version'. --- src/local.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/local.mk b/src/local.mk index 96ee941ca..e93eb5fc9 100644 --- a/src/local.mk +++ b/src/local.mk @@ -633,6 +633,7 @@ src/version.c: Makefile $(AM_V_GEN)rm -f $@ $(AM_V_at)${MKDIR_P} src $(AM_V_at)printf '#include \n' > $@t + $(AM_V_at)printf 'extern const char *Version;\n' >> $@t $(AM_V_at)printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t $(AM_V_at)chmod a-w $@t $(AM_V_at)mv $@t $@ -- 2.44.0