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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy