binutils-gdb/sim/m68hc11
Tsukasa OI 7f9495b213 sim/m68hc11: Add ATTRIBUTE_PRINTF
Clang generates a warning if the format string of a printf-like function is
not a literal ("-Wformat-nonliteral").  On the default configuration, it
causes a build failure (unless "--disable-werror" is specified).

To avoid warnings on the printf-like wrapper, it requires proper
__attribute__((format)) and we have ATTRIBUTE_PRINTF macro for this reason.

This commit adds ATTRIBUTE_PRINTF to a printf-like function.
2022-10-11 15:18:14 +01:00
..
ChangeLog-2021
dv-m68hc11.c
dv-m68hc11eepr.c
dv-m68hc11sio.c
dv-m68hc11spi.c
dv-m68hc11tim.c
dv-nvram.c
emulos.c
gencode.c
interp.c
interrupts.c
interrupts.h
local.mk
m68hc11_sim.c
Makefile.in
sim-main.h sim/m68hc11: Add ATTRIBUTE_PRINTF 2022-10-11 15:18:14 +01:00