Message ID | 26a3eaf4f5d2e0db6977738ddfd65d82b36e38b2.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 y7csp154268wrs; Thu, 20 Oct 2022 02:30:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4oO5KJ7LKljmeWOAiiTq1SdqjklWn9aOEcy2yRztxNgqDFFxWTrsLREDoWknbGJauhEbej X-Received: by 2002:a05:6402:5cd:b0:446:5965:f4af with SMTP id n13-20020a05640205cd00b004465965f4afmr11259964edx.12.1666258242486; Thu, 20 Oct 2022 02:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258242; cv=none; d=google.com; s=arc-20160816; b=rMrq9u7X/O/X6Eosen/AlO7PColIzUbYJWul90B0tit3/AgofdqGWvUTu3MaGpeA9n obkA4+ctInWYCo+itW5tXD4sEEhS2fAdihyTQpHYGela6TuGFs0bZoytEyCKBs898xxY W3fXQswHruEbV0mCrEGAf3pNQhpn3cG4a3v8AkvlqwSZOp0HsLejSmCeEIlXEy3b/Zny onn1NFAjrmR1JZrsUZ+nOtvNdTfh72AbpmjbUk5iUJcjf33iNG7z7KQ1OZgvPgBP8ERC 3TaFqK7b7B1kTy1Pa30vsUyI0fhZzcW+Jgus84HB6B9gcxUWr1Phz+q3zfozPdocxDb9 GR/Q== 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=mh5pcwfk7F0V3+jIBs86h22ivIAPp2tE8vB0Aj6IkAk=; b=f2Sis59ZvTaAXAfOJU4TRcKriONi46tlWauGzL5s7MS+N3bBCiUtgK3jVgMmKDmdyQ gWYWxHepvDnYc2wReBC49v5x4F5M1is7HHsabFFA/a8VysovIzdh3z4wiqNnAw7Sq5r4 PZnCjhXMrRuuUI1HUM98HJu00LJht0FEeUR4wXMFMTv1l/tX+Z2oVslyKWTVnOnZ/avO E681dGZhh3fmSAy3Afd44Xm/oTSHrG2pmQN6NqRg9wEE0td6MrDc4PkfoS8UGMT44EUS MfM0B5KSKGoGq3rzthsBwYwytrdsp1sj15Iop/TknQU08I3jmwL+BQ9qPi29GrhONOAf UlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=sGzFa37T; 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 r26-20020a170906a21a00b0078d39e310e0si13651154ejy.701.2022.10.20.02.30.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:30:42 -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=sGzFa37T; 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 5C0873851178 for <ouuuleilei@gmail.com>; Thu, 20 Oct 2022 09:28:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C0873851178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258119; bh=mh5pcwfk7F0V3+jIBs86h22ivIAPp2tE8vB0Aj6IkAk=; 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=sGzFa37TifIoLmfNidzTtLInxApQerYFWwIwRQQTip6peEwcJ3d/NJemAC2TOVNu4 213TvByw/0SAtMXqNt3ZUsMz1gJ07FY4YbR5ekCs4MQnt56I5/BWwBHhJIUZdBxfoh RSOWeucWtR5BZKp7ibNMhlmqApDGnl9fhqO7MDcU= 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 D070F383FBB3 for <binutils@sourceware.org>; Thu, 20 Oct 2022 09:28:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D070F383FBB3 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 252DF300089; Thu, 20 Oct 2022 09:28:01 +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 08/40] sim/erc32: Insert void parameter Date: Thu, 20 Oct 2022 09:25:54 +0000 Message-Id: <26a3eaf4f5d2e0db6977738ddfd65d82b36e38b2.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.0 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?1747198402920972534?= X-GMAIL-MSGID: =?utf-8?q?1747198402920972534?= |
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
Clang generates a warning if there is a function declaration/definition with zero arguments. Such declarations/definitions without a prototype (an argument list) are deprecated forms of indefinite arguments ("-Wdeprecated-non-prototype"). On the default configuration, it causes a build failure (unless "--disable-werror" is specified). This commit replaces () with (void) to avoid this warning. --- sim/erc32/func.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sim/erc32/func.c b/sim/erc32/func.c index 4d1942065b8..af92c9f7d48 100644 --- a/sim/erc32/func.c +++ b/sim/erc32/func.c @@ -298,7 +298,7 @@ disp_reg(struct pstate *sregs, char *reg) #ifdef ERRINJ void -errinj() +errinj (void) { int err; @@ -322,7 +322,7 @@ errinj() } void -errinjstart() +errinjstart (void) { if (errper) event(errinj, 0, (random()%errper)); } @@ -855,7 +855,7 @@ event(void (*cfunc) (), int32_t arg, uint64_t delta) #if 0 /* apparently not used */ void -stop_event() +stop_event(void) { } #endif