Thread: patch for compile warning on date.c

patch for compile warning on date.c

From
Joe Conway
Date:
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();

Re: patch for compile warning on date.c

From
Tom Lane
Date:
Joe Conway <mail@joeconway.com> writes:
> I just noticed a new compile warning on date.c. Attached patch fixes it.

Wups, I shoulda looked closer at that code I was forward-porting from
7.2.  Thanks for the timely (ahem) correction!

            regards, tom lane