From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 4F7BF3858015 for ; Mon, 1 Nov 2021 04:59:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4F7BF3858015 Received: by smtp.gentoo.org (Postfix, from userid 559) id DF9BF342D36; Mon, 1 Nov 2021 04:59:52 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 5/9] sim: mips: reduce -Wno-error scope Date: Mon, 1 Nov 2021 00:59:41 -0400 Message-Id: <20211101045945.23481-5-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211101045945.23481-1-vapier@gentoo.org> References: <20211101045945.23481-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2021 04:59:54 -0000 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. --- sim/mips/Makefile.in | 4 ++-- sim/mips/sim-main.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sim/mips/Makefile.in b/sim/mips/Makefile.in index 632cc20f3a8b..b34fdf5b461e 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 24e16029d22e..1b9be9567aa0 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]); } -- 2.33.0