Skip to content

Commit 5c45d2f

Browse files
committed
Mark DateTimeParseError() noreturn
This avoids a warning from clang 3.2 about an uninitialized variable 'dtype' in date_in().
1 parent 0830cc9 commit 5c45d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/utils/datetime.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ extern int DecodeISO8601Interval(char *str,
285285
int *dtype, struct pg_tm * tm, fsec_t *fsec);
286286

287287
extern void DateTimeParseError(int dterr, const char *str,
288-
const char *datatype);
288+
const char *datatype) __attribute__((noreturn));
289289

290290
extern int DetermineTimeZoneOffset(struct pg_tm * tm, pg_tz *tzp);
291291

0 commit comments

Comments
 (0)