From e0554a531f17f56167f978eddf29a09cc6ae9f32 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Sun, 16 Feb 2003 17:29:11 +0000 Subject: 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 --- lib/libc/stdtime/asctime.c | 4 ++-- lib/libc/stdtime/difftime.c | 4 ++-- lib/libc/stdtime/localtime.c | 4 ++-- lib/libc/stdtime/strptime.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/libc/stdtime') diff --git a/lib/libc/stdtime/asctime.c b/lib/libc/stdtime/asctime.c index 49cbc1da39ac..4fd130b17fb0 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 #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 __FBSDID("$FreeBSD$"); /*LINTLIBRARY*/ diff --git a/lib/libc/stdtime/difftime.c b/lib/libc/stdtime/difftime.c index 59368e49e219..c79891cc2912 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 #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 __FBSDID("$FreeBSD$"); /*LINTLIBRARY*/ diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index a82256e3b15a..501930e32454 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 #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 __FBSDID("$FreeBSD$"); /* diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index edb0d3c83d03..904c388ab761 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 #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 __FBSDID("$FreeBSD$"); #include "namespace.h" -- cgit v1.2.3