Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pUkXf-0006Fw-Qk for mharc-grub-devel@gnu.org; Wed, 22 Feb 2023 03:31:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUkXd-0006Fh-JG for grub-devel@gnu.org; Wed, 22 Feb 2023 03:31:57 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUkXa-0001Wm-To for grub-devel@gnu.org; Wed, 22 Feb 2023 03:31:57 -0500 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pUkXW-003SdP-SI; Wed, 22 Feb 2023 09:31:50 +0100 Received: from p57bd9bc2.dip0.t-ipconnect.de ([87.189.155.194] helo=z6.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pUkXW-002FV5-MD; Wed, 22 Feb 2023 09:31:50 +0100 Received: from glaubitz by z6.fritz.box with local (Exim 4.96) (envelope-from ) id 1pUkXW-0003Fu-0i; Wed, 22 Feb 2023 09:31:50 +0100 From: John Paul Adrian Glaubitz To: grub-devel@gnu.org Cc: Samuel Thibault , debian-hurd@lists.debian.org, John Paul Adrian Glaubitz Subject: [PATCH] osdep/hurd/getroot: Remove unused variables in grub_util_find_hurd_root_device() Date: Wed, 22 Feb 2023 09:31:42 +0100 Message-Id: <20230222083142.12505-1-glaubitz@physik.fu-berlin.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.155.194 Received-SPF: pass client-ip=130.133.4.66; envelope-from=glaubitz@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2023 08:31:57 -0000 Found during a test build on Debian/hurd-i386 with --disable-werror enabled: In file included from grub-core/osdep/getroot.c:12: grub-core/osdep/hurd/getroot.c: In function ‘grub_util_find_hurd_root_device’: grub-core/osdep/hurd/getroot.c:126:13: error: unused variable ‘next’ [-Werror=unused-variable] 126 | char *next; | ^~~~ grub-core/osdep/hurd/getroot.c:125:14: error: unused variable ‘size’ [-Werror=unused-variable] 125 | size_t size; | ^~~~ Signed-off-by: John Paul Adrian Glaubitz --- grub-core/osdep/hurd/getroot.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/grub-core/osdep/hurd/getroot.c b/grub-core/osdep/hurd/getroot.c index af31f2c47..0efefdab4 100644 --- a/grub-core/osdep/hurd/getroot.c +++ b/grub-core/osdep/hurd/getroot.c @@ -122,8 +122,6 @@ grub_util_find_hurd_root_device (const char *path) if (strncmp (name, "device:", sizeof ("device:") - 1) == 0) { char *dev_name = name + sizeof ("device:") - 1; - size_t size; - char *next; if (dev_name[0] == '@') { -- 2.39.1