From patchwork Mon Dec 19 16:48:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 34649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2496547wrn; Mon, 19 Dec 2022 08:48:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXubJbToIilgHfhhpqIiYdA2k0w7zgGRkr1Zbi9J8EFpPMdKSjiLs/8lh48t1+BM7KI3j9xs X-Received: by 2002:a17:906:3b0a:b0:7ff:7205:414e with SMTP id g10-20020a1709063b0a00b007ff7205414emr7793704ejf.69.1671468539243; Mon, 19 Dec 2022 08:48:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671468539; cv=none; d=google.com; s=arc-20160816; b=Jy/Do7zQn+zHwljSw74IClAEo53LI+2wPZMuzDyYStXh/W9zWp3WXjlExvUEvNPqms 72RNSmKdGZa/rBmgcXZQmk31cUP4O9bZ5jkGqx6VD7Q68T8uJnSIlzwsHeiKKXm25oUD nNud/1+uvg7rjnf0xH3Mpd+CGZyX2QdQR64m3D17dH44ou1AxXP/R6cS3+ZBr6fwwX/9 i4NJoN/CnEd7ovGknNchRyObXjFtJAlibCf6fucDJrpDh+yBG11UgpL5AlA/BFVnwAjw f8hxanH5ED1PnRzhxg/b+LZKV+7a9ZMjRo43hyXL1AU6x/2aykKUWEyZ5S400UkLF9p9 Qlrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=ikgxJDafbOI1tChKRtPiH3DWG013mUGf80qmJWZ2Tvg=; b=oHG5axatE/CimPzL637FM5Bewc4rwCEIvEDWGvFvQBgfQk6MHNowc2P2tbBuKu1UaH 5encMonk2JaJhOmWu3Xu7zL9TSIyBtRqn8/mxqXbnIEObkFsrSyOA5lezEyz1iWJ1oU9 P90P+AqpRSTdEyjkp2n5K7/gWYxm8o9yWm1cR1uKp+7PJ9CLfeFjVJ85fHSE+rSqxq7/ viY6llor1ihFXqMPYzYaJfFp7FirMx0b5e6Khrq1JN12Jwnv9ehzCJoKIQbo65jiTozX BQ2QPMWqGu928mFVieUt1C5K8OxcFah0+4FRJ5LDq7naSzfeggSfMR2NodK2dRTUGkYg Wc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=XttD0aNi; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ji12-20020a170907980c00b007c365fad0basi10445514ejc.152.2022.12.19.08.48.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 08:48:59 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=XttD0aNi; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 E13A43858C53 for ; Mon, 19 Dec 2022 16:48:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E13A43858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671468537; bh=ikgxJDafbOI1tChKRtPiH3DWG013mUGf80qmJWZ2Tvg=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=XttD0aNi5sphXDGVZWPYJeuLqxUk9T+sLO6fZuvBRbuQwDFsdPggYTyA8+Sycr42F JeDKJMq1hElk0uZHiJm29WsWTwYhxvqeYHhTO6ZVHd2Ncwz4tCfamYd5639B96hdzH ZEb6fn43jptXfi9AMgfHXyPG7c1ZP9TGJOC+za+E= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id 944043858D1E for ; Mon, 19 Dec 2022 16:48:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 944043858D1E Received: by mail-il1-x132.google.com with SMTP id o8so5024889ilo.1 for ; Mon, 19 Dec 2022 08:48:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ikgxJDafbOI1tChKRtPiH3DWG013mUGf80qmJWZ2Tvg=; b=isD7xHVVgDtRFNTRkoE7cEdLkrM30El5VmduIw+tUt5Tmnd74RYlvIeSLnm3NA6a+i vtiWQOyvS6lYwd3q+mCnxJp27H0sCufiFd+EEkrn0BxyDzVQz9CGk/lUxbVdj6jOpSo2 1SyVhqqUU1TAdTvbPannjZ3heaPJqTQxZzpCN/K15edKGp5RTcigboWSE+lo7+ys9mkh xGspb7HpAxs3GQxQjKro57bRdj16nMuYmiUpUj4SrdMGONHDUnUFSqrno/aNE4Alnj5X LWc66OK3IpNdenyif5nv9kqiwNqppjKdBXGn0vTDyzRrhMHAmuF1RC5Zgrw0BuzHjSgV 6jHA== X-Gm-Message-State: AFqh2kqanxIjpvYwMcQ64VMwmprXNPcsti6eOaS7o23sJ4Ae7M/n0nKO e4YMPP2JKoLPOZkkC4JMqQdW6vKB2IhHynQP X-Received: by 2002:a92:c5a2:0:b0:305:dee9:bcbe with SMTP id r2-20020a92c5a2000000b00305dee9bcbemr12154082ilt.22.1671468528690; Mon, 19 Dec 2022 08:48:48 -0800 (PST) Received: from localhost.localdomain (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id v8-20020a056e020f8800b002e939413e83sm3383362ilo.48.2022.12.19.08.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 08:48:48 -0800 (PST) To: binutils@sourceware.org Cc: Tom Tromey Subject: [pushed] Avoid compiler warning in dwarf-do-refresh Date: Mon, 19 Dec 2022 09:48:30 -0700 Message-Id: <20221219164830.394274-1-tromey@adacore.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom Tromey via Binutils From: Tom Tromey Reply-To: Tom Tromey Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752661795007852642?= X-GMAIL-MSGID: =?utf-8?q?1752661795007852642?= The Emacs 28 compiler warns about dwarf-mode.el: Warning (comp): dwarf-mode.el:180:32: Warning: Unused lexical argument `ignore' This is easily fixed by prepending "_" to the parameter's name. binutils/ChangeLog 2022-12-19 Tom Tromey * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning. --- binutils/ChangeLog | 4 ++++ binutils/dwarf-mode.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binutils/dwarf-mode.el b/binutils/dwarf-mode.el index 9df875ca4fe..3c59ee136bc 100644 --- a/binutils/dwarf-mode.el +++ b/binutils/dwarf-mode.el @@ -177,7 +177,7 @@ A prefix argument means expand all children." ;; Run objdump and insert the contents into the buffer. The arguments ;; are the way they are because this is also called as a ;; revert-buffer-function. -(defun dwarf-do-refresh (&rest ignore) +(defun dwarf-do-refresh (&rest _ignore) (dwarf--check-running) (let ((inhibit-read-only t)) (dwarf--invoke (point-min) (point-max)