From 0b4e1419cd2fa7ce70c936f161db6d4c1825a798 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 24 Jun 2018 20:47:58 -0700 Subject: [PATCH] parse-datetime: accommodate gcc-4.8.5 Bruno Haible reported the build failure in https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html * lib/parse-datetime.y (parse_datetime2): Remove leading "static" on declaration of new local. --- ChangeLog | 8 ++++++++ lib/parse-datetime.y | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d2f212874f..1ec489afa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-06-24 Jim Meyering + + parse-datetime: accommodate gcc-4.8.5 + Bruno Haible reported the build failure in + https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html + * lib/parse-datetime.y (parse_datetime2): Remove leading "static" + on declaration of new local. + 2018-06-24 Bruno Haible af_alg: Fail in continuable manner on Linux/powerpc64le. diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y index 3d8666a4df..00ecb7fcae 100644 --- a/lib/parse-datetime.y +++ b/lib/parse-datetime.y @@ -1769,7 +1769,7 @@ parse_datetime2 (struct timespec *result, char const *p, /* Store a local copy prior to first "goto". Without this, a prior use below of RELATIVE_TIME_0 on the RHS might translate to an assignment- to-temporary, which would trigger a -Wjump-misses-init warning. */ - static const relative_time rel_time_0 = RELATIVE_TIME_0; + const relative_time rel_time_0 = RELATIVE_TIME_0; if (strncmp (p, "TZ=\"", 4) == 0) { -- 2.39.5