From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 77EB11F463 for ; Wed, 8 Jan 2020 07:47:34 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:date:mime-version :in-reply-to:content-type:content-transfer-encoding:message-id; q=dns; s=default; b=hzpGABsA0flBpxb3ZsdVYeyNmrLz3WJKuMFJ0lX5k3K rNSWLTNmAuXFuiMrLkaYV/I7r3VRXxxEvUo73ifyeWihwepRurmuzev4yUX1mCq2 3cs49h9b4BP3JyMDdJRGUMizdUANzLvWiHN5xDCuC776pyceVYgcQTjDu/gqze9o = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:date:mime-version :in-reply-to:content-type:content-transfer-encoding:message-id; s=default; bh=sWUQoO8z1FRe3I1wakJf0SO5xZ0=; b=P/II1TJ0LbD9SrQpZ UWj81/z/oSNQlTHs9zBj/EzMp2SUx2EMkckc64dlyAk8g/PMXUlh1DkfGhgB4wsc bayHQBCgdrFeUSRXdpx3vrgOSyzvqfhxQvSn6TE9Xe53JlaS4+rJdV8yOMTGRYI4 MIZZR1ec6ClLqKJ+CHoMEdatLE= Received: (qmail 27708 invoked by alias); 8 Jan 2020 07:47:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 27642 invoked by uid 89); 8 Jan 2020 07:47:26 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx0a-001b2d01.pphosted.com Subject: Re: [PATCH] Get rid of Werror=maybe-uninitialized in res_send.c. To: libc-alpha@sourceware.org References: <03d65724-d69b-d553-18a5-dece072e5a45@linux.ibm.com> <74a3d5d8-2c65-bcb3-b61d-297ad5ba6d1e@linux.ibm.com> From: Stefan Liebler Date: Wed, 8 Jan 2020 08:47:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit x-cbid: 20010807-0028-0000-0000-000003CF24FB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20010807-0029-0000-0000-0000249336C6 Message-Id: <09ae7389-db09-22db-9d83-67efc19b5046@linux.ibm.com> On 12/13/19 1:43 PM, Stefan Liebler wrote: > On 12/9/19 2:00 PM, Stefan Liebler wrote: >> On 12/3/19 9:50 AM, Stefan Liebler wrote: >>> Hi, >>> >>> the commit 446997ff1433d33452b81dfa9e626b8dccf101a4 introduced >>> this new usage of resplen. If build with gcc 9 -march>=z13 on s390x, >>> the following warning occurs: >>> res_send.c: In function ‘__res_context_send’: >>> res_send.c:539:6: error: ‘resplen’ may be used uninitialized in this >>> function [-Werror=maybe-uninitialized] >>> 539 |   if (resplen > HFIXEDSZ) >>> |      ^ >>> >>> Therefore this patch adds a further DIAG_IGNORE_NEEDS_COMMENT in the >>> same way as it was previously done for usages of resplen or n. >>> See commit d1bc2cbbed9aea2017ef941f63c8786571da5b4f. >>> >>> Bye >>> Stefan >> >> ping >> > ping > ping