From db2858b0d1df0e509b2c1639da88b81c14661712 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 22 Aug 2013 14:01:38 -0400 Subject: [PATCH] Add some header declarations to avoid -Wall warnings. --- compmove.c | 1 + empire.c | 2 +- game.c | 1 + math.c | 1 + usermove.c | 1 + util.c | 3 +++ 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/compmove.c b/compmove.c index a9d33ca..79de535 100644 --- a/compmove.c +++ b/compmove.c @@ -16,6 +16,7 @@ For each move the user wants us to make, we do the following: */ #include +#include /* Ugh...shouldn't be needed here */ #include "empire.h" #include "extern.h" diff --git a/empire.c b/empire.c index 1c44569..161019f 100644 --- a/empire.c +++ b/empire.c @@ -11,6 +11,7 @@ parser, and the simple commands. */ #include +#include /* Ugh...shouldn't be needed here */ #include "empire.h" #include "extern.h" @@ -327,7 +328,6 @@ Print a "zoomed" version of the computer's map. void c_movie (void) { - (void) clear (); for (;;) { comp_move (1); print_zoom (comp_map); diff --git a/game.c b/game.c index b3e8925..2cec490 100644 --- a/game.c +++ b/game.c @@ -13,6 +13,7 @@ game.c -- Routines to initialize, save, and restore a game. #include #include #include +#include /* Ugh...shouldn't be needed here */ #include "empire.h" #include "extern.h" diff --git a/math.c b/math.c index dd206b4..d68eb12 100644 --- a/math.c +++ b/math.c @@ -21,6 +21,7 @@ Other routines include: */ #include +#include #include "empire.h" #include "extern.h" diff --git a/usermove.c b/usermove.c index 5fcb788..0b57746 100644 --- a/usermove.c +++ b/usermove.c @@ -12,6 +12,7 @@ usermove.c -- Let the user move her troops. #include #include #include +#include /* Ugh...shouldn't be needed here */ #include "empire.h" #include "extern.h" diff --git a/util.c b/util.c index 4e03461..956401d 100644 --- a/util.c +++ b/util.c @@ -11,6 +11,7 @@ util.c -- various utility routines. #include #include +#include /* Ugh...shouldn't be needed here */ #include #include #include "empire.h" @@ -22,6 +23,8 @@ Convert a string to uppercase. Shirley this is defined elsewhere? */ +#include +#include #include void -- 2.43.0