Message ID | 021dbd238af5dfe74523ed229d2156a155a6bb9e.1666257885.git.research_trasio@irq.a4lg.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp154865wrs; Thu, 20 Oct 2022 02:32:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MsaR3Be7W/Y2jqIP+AnR1gWPzhHcLvGGPW4Su5+bvV20pE2Op53JPWsOhWv35mPSobvG7 X-Received: by 2002:a17:907:e93:b0:78d:46b3:3a76 with SMTP id ho19-20020a1709070e9300b0078d46b33a76mr10008689ejc.133.1666258352816; Thu, 20 Oct 2022 02:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258352; cv=none; d=google.com; s=arc-20160816; b=Y1mIfc1Jxtin4O05fVlRhkkK6Z2BF/8c/cxCuNmcIM9n32qz9m0+S77NAWC7iUZl58 lHg0BauCwr/ZvMEGwhFyfgxrYLnRrjGIgsuVbR32f7cLLDsakJa0v+PSJv/D1wdeyQx4 yrArhPkEY8BIR7cc3aVLUiEU9GlCD+aPujZffMchUKp6GSlizoft2/Wiqmuczym+cKv6 zwXk0Qy1StamiwsPWU6NTWN5/5nA4kKKdvHEvXoLvrBWzpvN8Vpd3ElaIWY/+FO39CMt NMSXjNZkez0+Z+sboBrlGvp/75w5I/TbQGBVGuUCDI8IUV1o1s2mXlscWIxZRUxc/gdz zi5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=6MbyPSDWyccNdQGOpn8PqXl6YuGySOgOqdD4aX9G714=; b=Cfr6N+o0cHh2faN+Qo4+V9GFwRw8Fbv3OIPw/P7UilQL2KyOARxTYA/QGWxvje2ekE 8vOiuhQ2s7sCkoscSu0UvygRHOR8RzFC2+5Bk7k6wj9rwTFbt/G7jk3MwY9Ja7cX0tRn BxrZtZTW/lpuPC5fAoIdM06svdcu0IqF4zlruglTYKHk8E6uIznFEw/rJduMDXcDe0dh KkNlDxYMZcl4Sl3eDL8wXJrQJ54nJjnSFEyFGtDQ7mdJGERh1G0J+8VuC5T7t8Gbm4oq Zzv2bz7ickNLspOpB7yvul9SjQ584BYADqa/VOdeWOiHl72M2eJzUxdSWh7tDp1T7Sg1 NP5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=pCy3wlZV; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v4-20020a056402348400b0045cfb639ff2si17404220edc.506.2022.10.20.02.32.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:32:32 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=pCy3wlZV; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D1A73821FD3 for <ouuuleilei@gmail.com>; Thu, 20 Oct 2022 09:29:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D1A73821FD3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258167; bh=6MbyPSDWyccNdQGOpn8PqXl6YuGySOgOqdD4aX9G714=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pCy3wlZVWmD0+lXSTPG0e5N8Q4GV4v7IYuhHYKR4MgG8nDH52JIL6bTgvWknRRrll +9Des5NVyQ2G1WpGb30MTbR69KjdSiJFVd/zcaI/dm8IvLMoRcogT86dq4hObREAr5 7nTrXV53l0rkUB48eV1waV2lfxTleIDwQuCvgnjo= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id E2DE538983A5 for <binutils@sourceware.org>; Thu, 20 Oct 2022 09:28:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E2DE538983A5 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 43C0F300089; Thu, 20 Oct 2022 09:28:43 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Andrew Burgess <aburgess@redhat.com>, Mike Frysinger <vapier@gentoo.org>, Nick Clifton <nickc@redhat.com> Subject: [PATCH 12/40] sim/frv: Initialize nesr variable Date: Thu, 20 Oct 2022 09:25:58 +0000 Message-Id: <021dbd238af5dfe74523ed229d2156a155a6bb9e.1666257885.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1666257885.git.research_trasio@irq.a4lg.com> References: <cover.1666257885.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Binutils <binutils@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747198518431820144?= X-GMAIL-MSGID: =?utf-8?q?1747198518431820144?= |
Series |
sim+gdb: Suppress warnings if built with Clang (big batch 1)
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Tsukasa OI
Oct. 20, 2022, 9:25 a.m. UTC
GCC generates a warning if a variable may be used uninitialized on some cases ("-Wmaybe-uninitialized"). Despite that GCC will not cause a build failure even when "--enable-werror" is specified, it would be nice to get rid of it. This commit initializes the variable nesr when declared. --- sim/frv/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sim/frv/traps.c b/sim/frv/traps.c index 0c9eacd0bfd..b142c7890ad 100644 --- a/sim/frv/traps.c +++ b/sim/frv/traps.c @@ -432,7 +432,7 @@ frvbf_check_non_excepting_load ( int do_elos; SI NE_flags[2]; SI NE_base; - SI nesr; + SI nesr = 0; SI ne_index; FRV_REGISTER_CONTROL *control;