]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compiler warning
authorPip Cet <pipcet@protonmail.com>
Mon, 5 Aug 2024 21:58:16 +0000 (21:58 +0000)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Aug 2024 09:55:49 +0000 (11:55 +0200)
* src/timefns.c (Fdecode_time): Use 'UNINIT' to avoid a warning with
gcc 14 and checking enabled.

(cherry picked from commit 0822d0c1cdd0f107c2090016ab528a5279c50756)

src/timefns.c

index 7d8ecd3640743d2c67433c1332c7562e5e1587b8..9685b8a50d98a1a32d1485447a400a4d74aa9610 100644 (file)
@@ -1555,7 +1555,7 @@ usage: (decode-time &optional TIME ZONE FORM)  */)
      if HZ != 1 also set TH.ticks.  */
   time_t time_spec;
   Lisp_Object hz;
-  struct ticks_hz th;
+  struct ticks_hz th UNINIT;
   if (EQ (form, Qt))
     {
       th = decode_lisp_time (specified_time, CFORM_TICKS_HZ).th;