36f16b0cb8
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
|
||
---|---|---|
.. | ||
build.lua | ||
itemtab.src | ||
makeitems.c | ||
ra.c | ||
ra.h | ||
ra_allocl.c | ||
ra_allocl.h | ||
ra_aux.c | ||
ra_aux.h | ||
ra_interv.c | ||
ra_interv.h | ||
ra_items.c | ||
ra_items.h | ||
ra_lifet.c | ||
ra_lifet.h | ||
ra_pack.c | ||
ra_pack.h | ||
ra_profits.c | ||
ra_profits.h | ||
ra_xform.c | ||
ra_xform.h |