+2016-11-13 Jim Meyering <meyering@fb.com>
+
+ strftime: don't use __THROW
+ Each use of __THROW would provoke this from gcc-7-to-be:
+
+ lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
+ on unit local functions [-Wattributes]
+ static int iso_week_days (int, int) __THROW;
+ ^~~~~~
+ * lib/strftime.c (__THROW): Don't define.
+ Remove each use of __THROW.
+ * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
+ (tm_diff, iso_week_days, __strftime_internal): Likewise.
+
2016-11-14 Paul Eggert <eggert@union>
obstack: port to gcc -fcheck-pointer-bounds
#endif
-#ifndef __THROW
-# define __THROW
-#endif
-
/* Shift A right by B bits portably, by dividing A by 2**B and
truncating towards minus infinity. A and B should be free of side
effects, and B should be in the range 0 <= B <= INT_BITS - 2, where
}
#else
static CHAR_T *memcpy_lowcase (CHAR_T *dest, const CHAR_T *src,
- size_t len LOCALE_PARAM) __THROW;
+ size_t len LOCALE_PARAM);
static CHAR_T *
memcpy_lowcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM)
}
static CHAR_T *memcpy_uppcase (CHAR_T *dest, const CHAR_T *src,
- size_t len LOCALE_PARAM) __THROW;
+ size_t len LOCALE_PARAM);
static CHAR_T *
memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM)
/* Yield the difference between *A and *B,
measured in seconds, ignoring leap seconds. */
# define tm_diff ftime_tm_diff
-static int tm_diff (const struct tm *, const struct tm *) __THROW;
+static int tm_diff (const struct tm *, const struct tm *);
static int
tm_diff (const struct tm *a, const struct tm *b)
{
#define ISO_WEEK_START_WDAY 1 /* Monday */
#define ISO_WEEK1_WDAY 4 /* Thursday */
#define YDAY_MINIMUM (-366)
-static int iso_week_days (int, int) __THROW;
+static int iso_week_days (int, int);
#ifdef __GNUC__
__inline__
#endif
static size_t __strftime_internal (STREAM_OR_CHAR_T *, STRFTIME_ARG (size_t)
const CHAR_T *, const struct tm *,
bool, bool *
- extra_args_spec LOCALE_PARAM) __THROW;
+ extra_args_spec LOCALE_PARAM);
/* Write information from TP into S according to the format
string FORMAT, writing no more that MAXSIZE characters