]> Savannah Git Hosting - gnulib.git/commitdiff
parse-datetime: accommodate gcc-4.8.5
authorJim Meyering <meyering@fb.com>
Mon, 25 Jun 2018 03:47:58 +0000 (20:47 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 25 Jun 2018 03:48:50 +0000 (20:48 -0700)
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
lib/parse-datetime.y

index d2f212874f4dd94e84a3a6b7066845a3f5676cec..1ec489afa9758e6f4bbbda14f9a053e65fa6274f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-06-24  Jim Meyering  <meyering@fb.com>
+
+       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  <bruno@clisp.org>
 
        af_alg: Fail in continuable manner on Linux/powerpc64le.
index 3d8666a4dfe38044136a82152b6c4be0a2a9eabc..00ecb7fcae022cc46c3be2adb6003d231c96a7b3 100644 (file)
@@ -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)
     {