From 35e1fd6820cd05c180e180d0ec61457a9f31e196 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 23 Jun 2014 15:59:31 -0400 Subject: fixed warnings --- Makefile | 3 ++- chatbot.c | 1 + games.c | 2 ++ joshua.c | 3 ++- location.h | 3 ++- util.c | 3 +++ 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cbd7609..f41cff6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ SOURCES=joshua.o main.o util.o chatbot.o games.o strings.o +HEADERS=chatbot.h games.h joshua.h location.h strings.h map.h util.h CXXFLAGS=-I. -lncurses -g CFLAGS=-I. -std=gnu99 -g -all: $(SOURCES) +all: $(SOURCES) $(HEADERS) g++ $(SOURCES) -lncurses clean: rm -f $(SOURCES) a.out *~ diff --git a/chatbot.c b/chatbot.c index 775eda4..ddc0eff 100644 --- a/chatbot.c +++ b/chatbot.c @@ -3,6 +3,7 @@ #include "strings.h" #include #include +#include void do_chatbot(void) { int stage=0; /* stage 0: i'm fine how are you... -> diff --git a/games.c b/games.c index 1f939d2..21c982f 100644 --- a/games.c +++ b/games.c @@ -3,6 +3,8 @@ #include #include #include +#include +#include void global_thermonuclear_war(void) { clear(); diff --git a/joshua.c b/joshua.c index 5b5f27a..fc9d1f6 100644 --- a/joshua.c +++ b/joshua.c @@ -4,7 +4,8 @@ #include #include #include -#define RANDOM_TIME 1 +#include +#include void cleanup(int signum) { endwin(); diff --git a/location.h b/location.h index e1c1655..57c9b0d 100644 --- a/location.h +++ b/location.h @@ -15,7 +15,8 @@ struct location_t world[]={ {"winston-salem", 30, 7}, {"san francisco", 1, 6}, {"chicago", 24, 4}, - + {"miami", 32, 11}, + /* Soviet cities */ /* NOTE: These are not neccessarily correct. I simply eyed them relative to Murmansk */ {"murmansk", 74, 1}, diff --git a/util.c b/util.c index ef4b62d..6ca83fe 100644 --- a/util.c +++ b/util.c @@ -1,4 +1,7 @@ #include +#include +#include +#include #include #include "strings.h" void allLower(char* str) -- cgit v1.1