From patchwork Fri Dec 22 02:05:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82732 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11E45384DEC2 for ; Fri, 22 Dec 2023 02:06:09 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 41E053858402 for ; Fri, 22 Dec 2023 02:05:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41E053858402 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 41E053858402 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703210752; cv=none; b=JOv0NwEvnOrXgO6kc0D87hGKeKZXSmmfV90Foy/lyWhx0qqDxmB+3yDWW/yeWU445UsVN6WqrTdxEWSAH7rI4ulMmNU60nevh4no/HhMyL/zxsINw9H0eulxlS3EQpqY/cASLmAh3klnzNgCQuwKWBGh3quM9KfnCLGP1skgi1I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703210752; c=relaxed/simple; bh=p28q9AL92FnXxj13qut3miO5v+CGle6zHPPNmqyrp24=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=avkMurLjbUQb96YwSxyns/lsAhMTpbOVz0rLElgqo51S1lSnV2XZxQ9RN4MUlpdEckO+tzcZyTtykmCUNrLiqpCz0aJU2zv8dqFsvLV0mrnuzEkrFZVdCJ1SWi5rJjuquVxDEdyrN5AVihtuWoGz1aKxr68+ZqgzFgV4hMFmSU8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id CD65A3408DD; Fri, 22 Dec 2023 02:05:49 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/committed 2/2] sim: warnings: enable -Wreturn-type Date: Thu, 21 Dec 2023 21:05:45 -0500 Message-ID: <20231222020545.8663-2-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222020545.8663-1-vapier@gentoo.org> References: <20231222020545.8663-1-vapier@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Older versions of gcc support this warning flag. We're already clean. --- sim/configure | 1 + sim/m4/sim_ac_option_warnings.m4 | 1 + 2 files changed, 2 insertions(+) diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 555bdb0a26ae..1c2d09152306 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -69,6 +69,7 @@ build_warnings="$build_warnings -Wold-style-definition -Wpointer-sign -Wreturn-mismatch +-Wreturn-type -Wstrict-prototypes dnl The cgen virtual insn logic involves enum conversions. dnl Disable until we can figure out how to make this work.