From patchwork Thu Aug 1 08:46:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 94934 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7983C3858408 for ; Thu, 1 Aug 2024 08:47:34 +0000 (GMT) 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.129.124]) by sourceware.org (Postfix) with ESMTP id 6FFEB3858C39 for ; Thu, 1 Aug 2024 08:46:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6FFEB3858C39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6FFEB3858C39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722501980; cv=none; b=DBRcrEzT43L+W4ES5OtY7FbDboh50okmtcIWGrJvoAdGqQqyyGwVPoQYGfCHhnrncZrbwGaZQFt/T+VWZk+GxnRnWdmpxkmSD49Knb0BOLGz3Gxr/dwMMR0EWttg9Ek5m+zSYxOLRxBD15DRVCUnDbiTyUcTpHhHYs1utorV6EE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722501980; c=relaxed/simple; bh=Q35VZQdQNbodC4+Ws8+jK9fPHQJLPISNdemm8iXy/Q0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=aqEUVpdel8os4AEo6eaftm8JnhjFZPiuika60MtKNBti0vNmuMz/XDpj+8GHkiTpZ78/b8paSGp+O/DXcTf/RDPkOuJuqGZOIRMj8I46egg2GAd3QyD0BZCKpHslgfZJ5g6qQ1qvcoB9l+nZiRakp5WKVgbJ1Uw/kyzZtAq/jgs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722501976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=OMmoq7/0c67rPn7akjqZAPOj6EtOpj9l1vNpqc1vXgs=; b=CpVGX2IRp/IiL4aNF0UM/XY6MWn4krYPPP1zzec4NVTpkonivCruo5XGTWTGm8Ft/naUI2 7VWylje3DWrDBOw4IUMKQpUNL7juARBwxyeTfSXcgCE1SdC4Fyy0whMI5IT3/Aqc8CToyw JVbxsWn9paeTz7YrfunYV1y0sqKUPLU= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-VIoVwLojOU2NGZIUMlS-2Q-1; Thu, 01 Aug 2024 04:46:14 -0400 X-MC-Unique: VIoVwLojOU2NGZIUMlS-2Q-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 132CA1955D59 for ; Thu, 1 Aug 2024 08:46:14 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.45.224.28]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 10C371955E80 for ; Thu, 1 Aug 2024 08:46:12 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] resolv: Fix tst-resolv-short-response for older GCC (bug 32042) Date: Thu, 01 Aug 2024 10:46:10 +0200 Message-ID: <87ikwk3a25.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.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_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org Previous GCC versions do not support the C23 change that allows labels on declarations. Reviewed-by: Adhemerval Zanella --- resolv/tst-resolv-short-response.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) base-commit: 54252394c25ddf0062e288d4a6ab7a885f8ae009 diff --git a/resolv/tst-resolv-short-response.c b/resolv/tst-resolv-short-response.c index be354ae1c7..9b06b0c176 100644 --- a/resolv/tst-resolv-short-response.c +++ b/resolv/tst-resolv-short-response.c @@ -33,8 +33,10 @@ response (const struct resolv_response_context *ctx, { case 0: /* First server times out. */ - struct resolv_response_flags flags = {.rcode = rcode}; - resolv_response_init (b, flags); + { + struct resolv_response_flags flags = {.rcode = rcode}; + resolv_response_init (b, flags); + } break; case 1: /* Second server sends reply. */