Loading...
--- Libc/Libc-1725.40.4/stdtime/FreeBSD/strftime.c
+++ Libc/Libc-1244.30.3/stdtime/FreeBSD/strftime.c
@@ -14,9 +14,6 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunreachable-code"
#if 0
static const char elsieid[] = "@(#)strftime.3 8.3";
@@ -138,8 +135,14 @@
#ifndef BUILDING_VARIANT
__private_extern__ char *
-_fmt(const char *format, const struct tm * const t, char *pt,
- const char * const ptlim, int *warnp, struct lc_time_T *tptr, locale_t loc)
+_fmt(format, t, pt, ptlim, warnp, tptr, loc)
+const char * format;
+const struct tm * const t;
+char * pt;
+const char * const ptlim;
+int * warnp;
+struct lc_time_T * tptr;
+locale_t loc;
{
int Ealternative, Oalternative, PadIndex;
@@ -588,8 +591,12 @@
}
static char *
-_conv(const int n, const char * const format, char * const pt,
- const char * const ptlim, locale_t loc)
+_conv(n, format, pt, ptlim, loc)
+const int n;
+const char * const format;
+char * const pt;
+const char * const ptlim;
+locale_t loc;
{
char buf[INT_STRLEN_MAXIMUM(int) + 1];
@@ -598,7 +605,10 @@
}
static char *
-_add(const char * str, char * pt, const char * const ptlim)
+_add(str, pt, ptlim)
+const char * str;
+char * pt;
+const char * const ptlim;
{
while (pt < ptlim && (*pt = *str++) != '\0')
++pt;
@@ -614,8 +624,14 @@
*/
static char *
-_yconv(const int a, const int b, const int convert_top, const int convert_yy,
- char * pt, const char * const ptlim, locale_t loc)
+_yconv(a, b, convert_top, convert_yy, pt, ptlim, loc)
+const int a;
+const int b;
+const int convert_top;
+const int convert_yy;
+char * pt;
+const char * const ptlim;
+locale_t loc;
{
register int lead;
register int trail;
@@ -641,4 +657,3 @@
return pt;
}
#endif /* !BUILDING_VARIANT */
-#pragma clang diagnostic pop