diff options
author | Peter Eisentraut | 2012-08-22 03:30:05 +0000 |
---|---|---|
committer | Peter Eisentraut | 2012-08-22 03:32:58 +0000 |
commit | 5c45d2f87835ccd3ffac338845ec79cab1b31a11 (patch) | |
tree | 85a6fd055a591ff9cb7591d614624b43cb18b493 | |
parent | 0830cc9fe0ebebf0593ca2458ccf08638a546fb4 (diff) |
Mark DateTimeParseError() noreturn
This avoids a warning from clang 3.2 about an uninitialized variable
'dtype' in date_in().
-rw-r--r-- | src/include/utils/datetime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index d73cc8dcfe8..3725a7370dc 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -285,7 +285,7 @@ extern int DecodeISO8601Interval(char *str, int *dtype, struct pg_tm * tm, fsec_t *fsec); extern void DateTimeParseError(int dterr, const char *str, - const char *datatype); + const char *datatype) __attribute__((noreturn)); extern int DetermineTimeZoneOffset(struct pg_tm * tm, pg_tz *tzp); |