patch for compile warning on date.c
| От | Joe Conway |
|---|---|
| Тема | patch for compile warning on date.c |
| Дата | |
| Msg-id | 3F1F5C61.8090708@joeconway.com обсуждение исходный текст |
| Ответы |
Re: patch for compile warning on date.c
|
| Список | 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 по дате отправления: