From patchwork Tue May 4 14:28:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1473858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Blnd1DHs; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FZMfJ6k2Bz9sPf for ; Wed, 5 May 2021 00:28:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BEF82398E463; Tue, 4 May 2021 14:28:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEF82398E463 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620138527; bh=zSi3dgGNJ5sjKQoXcUeVcf2VbQZ19RPkeGN6JxzUUYg=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Blnd1DHs2emnjAtP02UVSkRroZ8DhNx137qyiLH1N/rHBUF9UGgBSNaKw7dgtPjKF s5E0Rs8brUG97UtclQijDu1gMC0EmJOTugxkH4e1EjNGjmtmWGe/HgK5plCoKrvKbU XuBexNFxtLUW3wqp9Bjd04tD6s5nUCLU2JnVSVYE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 8CE023952035 for ; Tue, 4 May 2021 14:28:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8CE023952035 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-250-Q2fyplQkPSmbXGgzXJS07g-1; Tue, 04 May 2021 10:28:43 -0400 X-MC-Unique: Q2fyplQkPSmbXGgzXJS07g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B055B802939 for ; Tue, 4 May 2021 14:28:42 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-137.ams2.redhat.com [10.36.112.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 17E6F17BB2 for ; Tue, 4 May 2021 14:28:41 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] posix: Fix Hurd build failure in tst-execveat Date: Tue, 04 May 2021 16:28:56 +0200 Message-ID: <878s4uk1xz.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This avoids a -Werror compilation failure due to unused local variables. --- posix/tst-execveat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posix/tst-execveat.c b/posix/tst-execveat.c index 53178c10d5..bc4d1aedc9 100644 --- a/posix/tst-execveat.c +++ b/posix/tst-execveat.c @@ -78,9 +78,12 @@ static int do_test (void) { DIR *dirp; - int fd, fd_out; + int fd; +#ifdef O_PATH + int fd_out; char *tmp_dir, *symlink_name, *tmp_sh; struct stat64 st; +#endif dirp = opendir ("/bin"); if (dirp == NULL)