ack/mach
George Koehler 36f16b0cb8 Cut down some clang warnings
Edit C code to reduce warnings from clang.  Most warnings are for
implicit declarations of functions, but some warnings want me to add
parentheses or curly braces, or to cast arguments for printf().

Make a few other changes, like declaring float_cst() in h/con_float to
be static, and using C99 bool in ego/ra/makeitems.c and
ego/share/makecldef.c.  Such changes don't silence warnings; I make
such changes while I silence warnings in the same file.  In
float_cst(), rename parameter `str` to `float_str`, so it doesn't
share a name with the global variable `str`.

Remove `const` from `newmodule(const char *)` in mach/proto/as to
silence a warning.  I wrongly added the `const` in d347207.

For warnings about implicit declarations of functions, the fix is to
declare the function before calling it.  For example, my OpenBSD
system needs <sys/wait.h> to declare wait().

In util/int, add "whatever.h" to declare more functions.  Remove old
declarations from "mem.h", to prefer the newer declarations of the
same functions in "data.h" and "stack.h".
2019-10-30 18:36:38 -04:00
..
6500 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
6800 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
6805 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
6809 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
arm Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
em22 Add the core of a simple em22 platform. Unfortunately it doesn't work; the old 2018-06-10 20:25:48 +09:00
em24 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
em44 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
i80 Teach some ncg machines to use .data8 2019-08-13 15:37:05 -04:00
i86 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
i386 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
m68k2 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
m68k4 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
m68020 Cut down some clang warnings 2019-10-30 18:36:38 -04:00
mantra Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
minix Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
minixST Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
mips Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
moon3/ncg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
ns Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
pdp Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
pmds Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
pmds4 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
powerpc Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
proto Cut down some clang warnings 2019-10-30 18:36:38 -04:00
s2650 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
sparc Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
sparc_solaris Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
sun2 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
sun3 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
vax4 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
vc4 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
xenix3 Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
z80 Fix several compiler warnings by adding braces 2019-05-14 23:21:19 +08:00
z8000 Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00