From 74fb1cff612696dd9578240ef1b043fef0c19799 Mon Sep 17 00:00:00 2001 From: Manoel Trapier Date: Mon, 18 Mar 2013 10:24:47 +0100 Subject: [PATCH] Make GCC happy with current patchs and compilation flags. --- lang/cem/cemcom.ansi/domacro.c | 2 ++ lang/cem/cemcom.ansi/expr.c | 2 ++ lang/cem/cpp.ansi/domacro.c | 1 + lang/cem/cpp.ansi/init.c | 3 --- mach/proto/ncg/fillem.c | 5 +++-- modules/src/em_code/insert.c | 2 ++ modules/src/read_em/mkcalls.c | 2 +- util/ack/files.c | 1 + util/ack/grows.c | 2 ++ util/ack/list.c | 3 +++ util/cpp/domacro.c | 1 + util/ego/cf/cf_loop.c | 1 + util/ego/cs/cs_alloc.c | 3 +++ util/ego/il/il_aux.c | 2 +- util/ego/share/alloc.c | 3 --- util/ego/share/alloc.h | 2 ++ util/ego/share/locals.c | 2 ++ util/ego/share/lset.c | 1 + util/ego/share/put.c | 2 ++ 19 files changed, 30 insertions(+), 10 deletions(-) diff --git a/lang/cem/cemcom.ansi/domacro.c b/lang/cem/cemcom.ansi/domacro.c index f2ac213aa..06dcb4f03 100644 --- a/lang/cem/cemcom.ansi/domacro.c +++ b/lang/cem/cemcom.ansi/domacro.c @@ -5,6 +5,8 @@ /* $Id$ */ /* PREPROCESSOR: CONTROLLINE INTERPRETER */ +#include + #include "debug.h" #include "arith.h" #include "LLlex.h" diff --git a/lang/cem/cemcom.ansi/expr.c b/lang/cem/cemcom.ansi/expr.c index 7d1972056..4ffd190ab 100644 --- a/lang/cem/cemcom.ansi/expr.c +++ b/lang/cem/cemcom.ansi/expr.c @@ -5,6 +5,8 @@ /* $Id$ */ /* EXPRESSION TREE HANDLING */ +#include + #include "lint.h" #include "debug.h" #include "assert.h" diff --git a/lang/cem/cpp.ansi/domacro.c b/lang/cem/cpp.ansi/domacro.c index feddbcba5..fc632e857 100644 --- a/lang/cem/cpp.ansi/domacro.c +++ b/lang/cem/cpp.ansi/domacro.c @@ -5,6 +5,7 @@ /* $Id$ */ /* PREPROCESSOR: CONTROLLINE INTERPRETER */ +#include #include #include "arith.h" diff --git a/lang/cem/cpp.ansi/init.c b/lang/cem/cpp.ansi/init.c index 25ea04151..9bb779714 100644 --- a/lang/cem/cpp.ansi/init.c +++ b/lang/cem/cpp.ansi/init.c @@ -33,9 +33,6 @@ struct mkey { {0, K_UNKNOWN} }; -//char *strcpy(); -//char *sprint(); - void init_pp() { static char *months[12] = { diff --git a/mach/proto/ncg/fillem.c b/mach/proto/ncg/fillem.c index 76af4417f..97b7a5081 100644 --- a/mach/proto/ncg/fillem.c +++ b/mach/proto/ncg/fillem.c @@ -431,8 +431,9 @@ dopseudo() { /* ----- input ----- */ -int getarg(typset) { - register t,argtyp; +int getarg(int typset) +{ + int t,argtyp; argtyp = t = table2(); if (t == EOF) diff --git a/modules/src/em_code/insert.c b/modules/src/em_code/insert.c index 73bddb831..0627f8b47 100644 --- a/modules/src/em_code/insert.c +++ b/modules/src/em_code/insert.c @@ -8,6 +8,8 @@ are received corresponds to the order in which they must be written, they can be written immediately. */ +#include +#include #include #include diff --git a/modules/src/read_em/mkcalls.c b/modules/src/read_em/mkcalls.c index 74394c3b7..1cbb6b3a7 100644 --- a/modules/src/read_em/mkcalls.c +++ b/modules/src/read_em/mkcalls.c @@ -55,7 +55,7 @@ PRIVATE int checkarg(struct e_arg *arg, int typset) { return 1; } -//#define checkarg(arg, x) (1) +/*#define checkarg(arg, x) (1)*/ #endif /* CHECKING */ /* EM_doinstr: An EM instruction diff --git a/util/ack/files.c b/util/ack/files.c index 118a174f7..374677d1e 100644 --- a/util/ack/files.c +++ b/util/ack/files.c @@ -4,6 +4,7 @@ * */ +#include #include #include "ack.h" diff --git a/util/ack/grows.c b/util/ack/grows.c index a5bd7ef6c..a7a9ad688 100644 --- a/util/ack/grows.c +++ b/util/ack/grows.c @@ -10,6 +10,8 @@ /* */ /**************************************************************************/ +#include + #include "ack.h" #include "grows.h" diff --git a/util/ack/list.c b/util/ack/list.c index 316437164..a9360b53b 100644 --- a/util/ack/list.c +++ b/util/ack/list.c @@ -4,6 +4,9 @@ * */ +#include +#include + #include "ack.h" #include "list.h" diff --git a/util/cpp/domacro.c b/util/cpp/domacro.c index de07b0645..baec20eb4 100644 --- a/util/cpp/domacro.c +++ b/util/cpp/domacro.c @@ -5,6 +5,7 @@ /* $Id$ */ /* PREPROCESSOR: CONTROLLINE INTERPRETER */ +#include #include #include "interface.h" diff --git a/util/ego/cf/cf_loop.c b/util/ego/cf/cf_loop.c index 177be9a3c..f4d3b9507 100644 --- a/util/ego/cf/cf_loop.c +++ b/util/ego/cf/cf_loop.c @@ -8,6 +8,7 @@ * C F _ L O O P . C */ +#include #include "../share/types.h" #include "../share/debug.h" diff --git a/util/ego/cs/cs_alloc.c b/util/ego/cs/cs_alloc.c index 8be291403..b94b3c047 100644 --- a/util/ego/cs/cs_alloc.c +++ b/util/ego/cs/cs_alloc.c @@ -3,6 +3,9 @@ * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ + +#include + #include "../share/types.h" #include "../share/alloc.h" #include "cs.h" diff --git a/util/ego/il/il_aux.c b/util/ego/il/il_aux.c index 23d889e0d..1d59f7316 100644 --- a/util/ego/il/il_aux.c +++ b/util/ego/il/il_aux.c @@ -211,7 +211,7 @@ call_p getcall(FILE *cf) m = getshort(); act->ac_size = getoff(); act->ac_inl = getbyte(); - act->ac_exp = getlines(cf,m,&voided, 0); //WARN + act->ac_exp = getlines(cf,m,&voided, 0); /* WARN */ *app = act; app = &act->ac_next; } diff --git a/util/ego/share/alloc.c b/util/ego/share/alloc.c index f00df6ce2..ba84779dd 100644 --- a/util/ego/share/alloc.c +++ b/util/ego/share/alloc.c @@ -16,9 +16,6 @@ #include "debug.h" #include "alloc.h" - -//char * myalloc(); - #ifdef DEBUG STATIC unsigned maxuse, curruse; diff --git a/util/ego/share/alloc.h b/util/ego/share/alloc.h index 4a54920e1..bfcd5c9ad 100644 --- a/util/ego/share/alloc.h +++ b/util/ego/share/alloc.h @@ -8,6 +8,8 @@ * C O R E A L L O C A T I O N A N D D E A L L O C A T I O N */ +#include + #ifdef DEBUG char *newcore(int size); void oldcore(char *p, int size); diff --git a/util/ego/share/locals.c b/util/ego/share/locals.c index 7cf5ace01..17cd8e4e8 100644 --- a/util/ego/share/locals.c +++ b/util/ego/share/locals.c @@ -8,6 +8,8 @@ */ #include +#include + #include #include #include diff --git a/util/ego/share/lset.c b/util/ego/share/lset.c index 5b96e1529..0a63b6e3c 100644 --- a/util/ego/share/lset.c +++ b/util/ego/share/lset.c @@ -8,6 +8,7 @@ * L S E T . C */ +#include #include "types.h" #include "lset.h" diff --git a/util/ego/share/put.c b/util/ego/share/put.c index c45d853e6..e966fb363 100644 --- a/util/ego/share/put.c +++ b/util/ego/share/put.c @@ -6,6 +6,8 @@ /* P U T . C */ #include +#include + #include #include #include "types.h" -- 2.34.1