From: Mike Frysinger Date: Mon, 1 Nov 2021 04:55:27 +0000 (-0400) Subject: sim: mips: reduce -Wno-error scope X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6391b286b14411afa4d24428930e8f03e8927fb7;p=binutils-gdb.git sim: mips: reduce -Wno-error scope Fix a few printf warnings in sim-main.c, and then we're left with only one file in here still generating warnings, so reduce the -Werror disable to that alone now that we require GNU make and can set variables on a per-object basis. --- diff --git a/sim/mips/Makefile.in b/sim/mips/Makefile.in index 632cc20f3a8..b34fdf5b461 100644 --- a/sim/mips/Makefile.in +++ b/sim/mips/Makefile.in @@ -77,8 +77,8 @@ all: $(SIM_@sim_gen@_ALL) SIM_EXTRA_DEPS = itable.h -# Code doesn't build cleanly yet. -SIM_WERROR_CFLAGS = +# Some modules don't build cleanly yet. +cp1.o: SIM_WERROR_CFLAGS = ## COMMON_POST_CONFIG_FRAG diff --git a/sim/mips/sim-main.c b/sim/mips/sim-main.c index 24e16029d22..1b9be9567aa 100644 --- a/sim/mips/sim-main.c +++ b/sim/mips/sim-main.c @@ -422,11 +422,11 @@ pending_tick (SIM_DESC SD, if (PENDING_SLOT_DELAY[index] == 0) { if (PENDING_TRACE) - sim_io_eprintf (SD, "PENDING_DRAIN - drained - index %d, dest 0x%lx, bit %d, val 0x%lx, size %d\n", + sim_io_eprintf (SD, "PENDING_DRAIN - drained - index %d, dest %p, bit %d, val %" PRIx64 ", size %d\n", index, - (unsigned long) PENDING_SLOT_DEST[index], + PENDING_SLOT_DEST[index], PENDING_SLOT_BIT[index], - (unsigned long) PENDING_SLOT_VALUE[index], + PENDING_SLOT_VALUE[index], PENDING_SLOT_SIZE[index]); if (PENDING_SLOT_BIT[index] >= 0) switch (PENDING_SLOT_SIZE[index]) @@ -468,11 +468,11 @@ pending_tick (SIM_DESC SD, } } else if (PENDING_TRACE && PENDING_SLOT_DELAY[index] > 0) - sim_io_eprintf (SD, "PENDING_DRAIN - queued - index %d, delay %d, dest 0x%lx, bit %d, val 0x%lx, size %d\n", + sim_io_eprintf (SD, "PENDING_DRAIN - queued - index %d, delay %d, dest %p, bit %d, val %" PRIx64 ", size %d\n", index, PENDING_SLOT_DELAY[index], - (unsigned long) PENDING_SLOT_DEST[index], + PENDING_SLOT_DEST[index], PENDING_SLOT_BIT[index], - (unsigned long) PENDING_SLOT_VALUE[index], + PENDING_SLOT_VALUE[index], PENDING_SLOT_SIZE[index]); }