ack/util/led
George Koehler 3f3bf1e164 Reduce warnings, adjust format strings in util/led
Calls like `debug("something\n", 0, 0, 0, 0)` cause clang warnings,
because debug() is a macro that passes its arguments to printf(), and
clang warns about extra 0s to printf().  Silence the warnings by
hiding the printf() in a new function do_debug().  The code still
passes extra 0s to printf(), but clang can't warn.

Macros debug() and verbose() should use C99 __VA_ARGS__, so they don't
require the extra 0s; but ACK doesn't use __VA_ARGS__ yet.

Adjust some format strings for debug() or fatal(), or cast their
arguments, to match their types.  I don't know whether uint32_t is
unsigned int or unsigned long, so I cast it to unsigned long, and
print it with "%lx".

In util/led/sym.c, #include "save.h" to declare savechar(), and use
parentheses to silence a clang warning in hash().
2019-11-01 18:27:34 -04:00
..
ack.out.5 Rename RELOLIS to RELOPPC_LIS. 2017-10-18 15:39:31 -04:00
archive.c Adapt to new object API 2019-05-11 01:15:18 +08:00
archive.h Add additional defines for compilation. 2019-03-24 17:09:29 +08:00
build.lua Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
const.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
debug.h Reduce warnings, adjust format strings in util/led 2019-11-01 18:27:34 -04:00
defs.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
error.c Reduce warnings, adjust format strings in util/led 2019-11-01 18:27:34 -04:00
error.h Reduce warnings, adjust format strings in util/led 2019-11-01 18:27:34 -04:00
extract.c Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
extract.h Add additional defines for compilation. 2019-03-24 17:09:12 +08:00
finish.c Merge remote-tracking branch 'upstream/default' into carl-ansi-part1 2019-03-24 21:42:56 +08:00
finish.h Add additional defines for compilation. 2019-03-24 17:09:12 +08:00
led.6 There are two places where names are added to the global symbol table; one via 2018-03-11 12:37:23 +01:00
led.layout Initial revision 1987-04-16 16:04:55 +00:00
mach.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
main.c Reduce warnings, adjust format strings in util/led 2019-11-01 18:27:34 -04:00
memory.c Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
memory.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
memory_layout Switch from long to size_t when allocating memory. 2018-11-14 12:33:25 -05:00
orig.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
output.c Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
output.h Add additional defines for compilation. 2019-03-24 17:09:12 +08:00
proto.make Header --> Id 1994-06-24 11:31:16 +00:00
read.c Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
relocate.c Reduce warnings, adjust format strings in util/led 2019-11-01 18:27:34 -04:00
relocate.h Add additional defines for compilation. 2019-03-24 17:09:12 +08:00
save.c Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
save.h Add additional defines for compilation. 2019-03-24 17:09:12 +08:00
scan.c Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
scan.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
sym.c Reduce warnings, adjust format strings in util/led 2019-11-01 18:27:34 -04:00
sym.h Add additional defines for compilation. 2019-03-24 17:08:45 +08:00
write.c Merge remote-tracking branch 'upstream/default' into carl-ansi-part1 2019-03-24 21:42:56 +08:00
write.h Add additional defines for compilation. 2019-03-24 17:09:12 +08:00
WRONG Adapted to current situation 1987-01-29 13:20:23 +00:00