bin/62456: WARNS fixes for games/pom and games/caesar

Gavin Atkinson gavin at ury.york.ac.uk
Fri Feb 6 15:50:30 PST 2004


>Number:         62456
>Category:       bin
>Synopsis:       WARNS fixes for games/pom and games/caesar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 06 15:50:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Gavin Atkinson <gavin at ury.york.ac.uk>
>Release:        FreeBSD 5.2-CURRENT sparc64
>Organization:
>Environment:
System: FreeBSD leeloo.york.ac.uk 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Mon Jan 26 13:04:27 GMT 2004 root at leeloo.york.ac.uk:/usr/obj/usr/src/sys/GENERIC sparc64

>Description:

Fix games/pom and games/caesar to compile with WARNS=6

>How-To-Repeat:

Increase WARNS in games/[pom|caesar]/Makefile and attempt to compile

>Fix:

Patch below. Tested on i386 and sparc64.

(also available at:)
http://www.devrandom.co.uk/freebsd/caesar.diff
http://www.devrandom.co.uk/freebsd/pom.diff

--- games/caesar/Makefile.old	Fri Jun 22 22:38:27 2001
+++ games/caesar/Makefile	Mon Nov 24 23:09:29 2003
@@ -8,6 +8,6 @@
 MAN=	caesar.6
 MLINKS=	caesar.6 rot13.6
 
-WARNS?=	2
+WARNS?=	6
 
 .include <bsd.prog.mk>
--- games/caesar/caesar.c.old	Mon May  5 10:52:25 2003
+++ games/caesar/caesar.c	Mon Nov 24 23:10:03 2003
@@ -80,9 +80,7 @@
 void printit(char *);
 
 int
-main(argc, argv)
-	int argc;
-	char **argv;
+main(int argc, char **argv)
 {
 	int ch, dot, i, nread, winnerdot = 0;
 	char *inbuf;


--- games/pom/Makefile.old	Fri Jun 22 22:38:27 2001
+++ games/pom/Makefile	Mon Nov 24 23:08:47 2003
@@ -6,6 +6,6 @@
 DPADD=	${LIBM}
 LDADD=	-lm
 
-WARNS?=	2
+WARNS?=	6
 
 .include <bsd.prog.mk>
--- games/pom/pom.c.old	Mon May  5 10:52:25 2003
+++ games/pom/pom.c	Mon Nov 24 23:08:33 2003
@@ -78,7 +78,7 @@
 static double	potm(double);
 
 int
-main()
+main(void)
 {
 	time_t tt;
 	struct tm *GMT;
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list