Fixed build errors/warnings for gcc 4.7.2.

This commit is contained in:
Sergey
2014-05-05 23:35:40 -07:00
parent 058804256a
commit 3c025a1e89
5 changed files with 7 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
TOPSRC = $(shell cd ../../..; pwd)
include $(TOPSRC)/target.mk
#include $(TOPSRC)/cross.mk
CFLAGS = -Os -Wall -DMIPS -DNO_ANNOTATIONS -DNO_PREPROCESSOR \
-DNO_PPACK -D_RETROBSD -D__SMALLER_C_SCHAR__ \
-D__SMALLER_C__ -D__SMALLER_C_32__
# For cross compile
#include $(TOPSRC)/cross.mk
#CFLAGS = -Os -Wall -DMIPS -m32
#LDFLAGS = -m32

View File

@@ -13,7 +13,7 @@ OBJS = battlestar.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o
init.o cypher.o getcom.o parse.o room.o save.o fly.o misc.o \
_globals.o _dayfile.o _nightfile.o dayobjs.o nightobjs.o words.o \
curses.o doprnt.o
LIBS =
LIBS = -lc
MAN = battlestar.0
MANSRC = battlestar.6

View File

@@ -12,7 +12,7 @@ CFLAGS += -Os -mips16 -Werror -Wall
OBJS = main.o pl_main.o pl_1.o pl_2.o pl_3.o pl_4.o pl_5.o pl_6.o pl_7.o \
dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \
assorted.o game.o globals.o misc.o parties.o sync.o version.o doprnt.o
LIBS = -lcurses -ltermcap
LIBS = -lcurses -ltermcap -lc
MAN = sail.0
MANSRC = sail.6

View File

@@ -17,7 +17,7 @@ OBJS = abandon.o attack.o autover.o capture.o check_out.o checkcond.o
ranf.o rest.o schedule.o score.o setup.o setwarp.o shell.o \
shield.o snova.o srscan.o systemname.o torped.o utility.o \
visual.o warp.o win.o
LIBS = -lm
LIBS = -lm -lc
MAN = trek.0
MANSRC = trek.6

View File

@@ -121,7 +121,7 @@ main(argc, argv)
{
long vect;
/* extern FILE *f_log; */
register char opencode;
/* register char opencode; */
int prio;
register int ac;
register char **av;
@@ -132,7 +132,7 @@ main(argc, argv)
av++;
time(&vect);
srand(vect);
opencode = 'w';
/* opencode = 'w'; */
prio = PRIO;
if (ioctl(1, TIOCGETP, &argp) == 0)
{
@@ -144,7 +144,7 @@ main(argc, argv)
switch (av[0][1])
{
case 'a': /* append to log file */
opencode = 'a';
/* opencode = 'a'; */
break;
case 'f': /* set fast mode */