]> granicus.if.org Git - postgresql/commitdiff
Mark DateTimeParseError() noreturn
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 22 Aug 2012 03:30:05 +0000 (23:30 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 22 Aug 2012 03:32:58 +0000 (23:32 -0400)
This avoids a warning from clang 3.2 about an uninitialized variable
'dtype' in date_in().

src/include/utils/datetime.h

index d73cc8dcfe8bc254764a46d812613c488c3ae5cb..3725a7370dcbb5d12274d58b184c7301c70b1fbf 100644 (file)
@@ -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);