aboutsummaryrefslogtreecommitdiffstats
path: root/games/bsdgames/files/patch-warns
blob: 2f2c11b131abae97d809b919d9be015f7649c77a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- ./atc/Makefile
+++ ./atc/Makefile
@@ -4,6 +4,7 @@
 
 PROG=  atc
 CFLAGS+=-I${.CURDIR} -I.
+WARNS?=    2
 SRCS=  extern.c grammar.y graphics.c input.c lex.l list.c log.c \
    main.c tunable.c update.c y.tab.h
 MAN=   atc.6
--- ./atc/include.h
+++ ./atc/include.h
@@ -56,6 +56,7 @@
 #include <pwd.h>
 #include <signal.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <termios.h>
 #include <unistd.h>
--- ./hack/Makefile
+++ ./hack/Makefile
@@ -19,6 +19,7 @@ MAN=  hack.6
 DPADD= ${LIBTERMCAP}
 LDADD= -ltermcap
 CFLAGS+= -I${.CURDIR} -I.
+WARNS?=    3 # shadowed 'u' variable, blame sys/stat.h :/
 FILES= rumors help hh data
 FILESMODE_rumors=  440
 FILESGRP=  ${BINGRP}
--- ./rogue/Makefile
+++ ./rogue/Makefile
@@ -4,6 +4,7 @@
 
 PROG=  rogue
 CFLAGS+=-DUNIX
+WARNS?=    1
 SRCS=  hit.c init.c inventory.c level.c machdep.c main.c \
    message.c monster.c move.c object.c pack.c play.c random.c ring.c \
    room.c save.c score.c spec_hit.c throw.c trap.c use.c zap.c