From: Jim Meyering Date: Mon, 25 Jun 2018 03:47:58 +0000 (-0700) Subject: parse-datetime: accommodate gcc-4.8.5 X-Git-Tag: v1.0~5544 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0b4e1419cd2fa7ce70c936f161db6d4c1825a798;p=gnulib.git 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. --- 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) {