summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-02-16 17:29:11 +0000
committernectar <nectar@FreeBSD.org>2003-02-16 17:29:11 +0000
commit832e8b7f9a7422b49453b7e389ec411d3037a50f (patch)
tree3b5579370346d51f378192429db2130e5e82a6e4 /lib/libc/stdtime
parent81da3fbe2a40d9b80c8e96af564180f8aa22074e (diff)
downloadFreeBSD-src-832e8b7f9a7422b49453b7e389ec411d3037a50f.zip
FreeBSD-src-832e8b7f9a7422b49453b7e389ec411d3037a50f.tar.gz
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r--lib/libc/stdtime/asctime.c4
-rw-r--r--lib/libc/stdtime/difftime.c4
-rw-r--r--lib/libc/stdtime/localtime.c4
-rw-r--r--lib/libc/stdtime/strptime.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/stdtime/asctime.c b/lib/libc/stdtime/asctime.c
index 49cbc1d..4fd130b 100644
--- a/lib/libc/stdtime/asctime.c
+++ b/lib/libc/stdtime/asctime.c
@@ -3,12 +3,12 @@
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
*/
+#include <sys/cdefs.h>
#ifndef lint
#ifndef NOID
-static char elsieid[] = "@(#)asctime.c 7.7";
+static char elsieid[] __unused = "@(#)asctime.c 7.7";
#endif /* !defined NOID */
#endif /* !defined lint */
-#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/*LINTLIBRARY*/
diff --git a/lib/libc/stdtime/difftime.c b/lib/libc/stdtime/difftime.c
index 59368e4..c79891c 100644
--- a/lib/libc/stdtime/difftime.c
+++ b/lib/libc/stdtime/difftime.c
@@ -3,12 +3,12 @@
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
*/
+#include <sys/cdefs.h>
#ifndef lint
#ifndef NOID
-static char elsieid[] = "@(#)difftime.c 7.7";
+static char elsieid[] __unused = "@(#)difftime.c 7.7";
#endif /* !defined NOID */
#endif /* !defined lint */
-#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/*LINTLIBRARY*/
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c
index a82256e..501930e 100644
--- a/lib/libc/stdtime/localtime.c
+++ b/lib/libc/stdtime/localtime.c
@@ -3,12 +3,12 @@
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
*/
+#include <sys/cdefs.h>
#ifndef lint
#ifndef NOID
-static char elsieid[] = "@(#)localtime.c 7.57";
+static char elsieid[] __unused = "@(#)localtime.c 7.57";
#endif /* !defined NOID */
#endif /* !defined lint */
-#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/*
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index edb0d3c..904c388 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -51,14 +51,14 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#ifndef NOID
-static char copyright[] =
+static char copyright[] __unused =
"@(#) Copyright (c) 1994 Powerdog Industries. All rights reserved.";
-static char sccsid[] = "@(#)strptime.c 0.1 (Powerdog) 94/03/27";
+static char sccsid[] __unused = "@(#)strptime.c 0.1 (Powerdog) 94/03/27";
#endif /* !defined NOID */
#endif /* not lint */
-#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "namespace.h"
OpenPOWER on IntegriCloud