Loading...
--- Libc/Libc-763.13/stdtime/FreeBSD/difftime.c
+++ Libc/Libc-1669.0.4/stdtime/FreeBSD/difftime.c
@@ -2,6 +2,9 @@
** This file is in the public domain, so clarified as of
** 1996-06-05 by Arthur David Olson.
*/
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunreachable-code"
#include <sys/cdefs.h>
#ifndef lint
@@ -18,9 +21,7 @@
#include "un-namespace.h"
double
-difftime(time1, time0)
-const time_t time1;
-const time_t time0;
+difftime(const time_t time1, const time_t time0)
{
/*
** If (sizeof (double) > sizeof (time_t)) simply convert and subtract
@@ -67,3 +68,4 @@
return -(double) ((unsigned long) time0 +
(unsigned long) (-(time1 + 1)) + 1);
}
+#pragma clang diagnostic pop