patch for compile warning on date.c - Mailing list pgsql-patches

From Joe Conway
Subject patch for compile warning on date.c
Date
Msg-id 3F1F5C61.8090708@joeconway.com
Whole thread Raw
Responses Re: patch for compile warning on date.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
I just noticed a new compile warning on date.c. Attached patch fixes it.

Joe
Index: src/backend/utils/adt/date.c
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/backend/utils/adt/date.c,v
retrieving revision 1.85
diff -c -r1.85 date.c
*** src/backend/utils/adt/date.c    24 Jul 2003 00:21:26 -0000    1.85
--- src/backend/utils/adt/date.c    24 Jul 2003 04:10:32 -0000
***************
*** 350,356 ****
      DateADT        result;
      struct tm    tt,
                 *tm = &tt;
!     double        fsec;

      if (TIMESTAMP_NOT_FINITE(timestamp))
          PG_RETURN_NULL();
--- 350,356 ----
      DateADT        result;
      struct tm    tt,
                 *tm = &tt;
!     fsec_t        fsec;

      if (TIMESTAMP_NOT_FINITE(timestamp))
          PG_RETURN_NULL();

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] PATCH: Memory leaks on start-up
Next
From: Tom Lane
Date:
Subject: Re: patch for compile warning on date.c