Commit 38a412ec authored by Tom Lane's avatar Tom Lane

Fix compile warning.

parent ec506c12
#ifndef DT_H #ifndef DT_H
#define DT_H #define DT_H
#include <pgtypes_timestamp.h>
#define MAXTZLEN 10 #define MAXTZLEN 10
#ifdef HAVE_INT64_TIMESTAMP #ifdef HAVE_INT64_TIMESTAMP
...@@ -297,6 +299,8 @@ int EncodeTimeOnly(struct tm * tm, fsec_t fsec, int *tzp, int style, char *str); ...@@ -297,6 +299,8 @@ int EncodeTimeOnly(struct tm * tm, fsec_t fsec, int *tzp, int style, char *str);
int EncodeDateTime(struct tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str, bool); int EncodeDateTime(struct tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str, bool);
int EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str); int EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str);
int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *);
int DecodeUnits(int field, char *lowtoken, int *val); int DecodeUnits(int field, char *lowtoken, int *val);
bool ClearDateCache(bool, bool, bool); bool ClearDateCache(bool, bool, bool);
......
...@@ -13,8 +13,6 @@ static int day_tab[2][13] = { ...@@ -13,8 +13,6 @@ static int day_tab[2][13] = {
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}}; {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}};
typedef long AbsoluteTime; typedef long AbsoluteTime;
int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *);
#define ABS_SIGNBIT ((char) 0200) #define ABS_SIGNBIT ((char) 0200)
#define POS(n) (n) #define POS(n) (n)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment