ack/util
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
..
ack Cut down some clang warnings 2019-10-30 18:36:38 -04:00
amisc * More ANSI C portability fixes. 2019-03-24 23:53:13 +08:00
arch * Fix merge conflict issue. 2019-06-16 01:19:15 +08:00
ass Read beyond buffer bugfix. 2019-03-31 00:53:09 +08:00
build Run all tests, even the ones which fail, and emit a test summary right at the 2016-12-01 23:03:30 +01:00
byacc Removed a whole bunch of old strcpy() prototypes in favour of <string.h>. 2019-02-10 13:20:04 +01:00
ceg Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
cgg Cut down some clang warnings 2019-10-30 18:36:38 -04:00
cmisc ANSI C conversion. 2019-05-11 01:14:01 +08:00
cpp Removed a whole bunch of old strcpy() prototypes in favour of <string.h>. 2019-02-10 13:20:04 +01:00
ego Cut down some clang warnings 2019-10-30 18:36:38 -04:00
flex Stop using mktemp() --- on Haiku, it always generates the same filenames, 2017-08-06 13:22:05 +02:00
grind Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
int Cut down some clang warnings 2019-10-30 18:36:38 -04:00
led Adapt to new object API 2019-05-11 01:15:18 +08:00
LLgen LLgen: use size_t, reduce warnings, other small changes 2019-10-22 15:32:23 -04:00
make * Fix compilation warning. 2019-05-11 00:49:10 +08:00
mcgg Add the OPTIONS clause to the mcgg grammar; add an optional pass which converts 2018-09-22 11:19:00 +02:00
misc ANSI C conversion. 2019-05-11 01:15:51 +08:00
ncgg Cut down some clang warnings 2019-10-30 18:36:38 -04:00
opt Cut down some clang warnings 2019-10-30 18:36:38 -04:00
shf Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
topgen ANSI C conversion. 2019-05-11 01:18:01 +08:00