Content-Length: 259804 | pFad | http://github.com/postgrespro/postgres_cluster/commit/5c45d2f87835ccd3ffac338845ec79cab1b31a11

E2 Mark DateTimeParseError() noreturn · postgrespro/postgres_cluster@5c45d2f · GitHub
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

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/5c45d2f87835ccd3ffac338845ec79cab1b31a11

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy