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,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 ED4EB1F463 for ; Fri, 13 Dec 2019 12:43:46 +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=H6/1S3UWMKgwLt0MjatTDzHoORvjxuzlFfOs8DHGloj O2ccFv1hqxzAtR1rK6VccIbAoy8ltgU7wv+FlSyw5v56KP0ujCN+x9aRM5o7+d7J 7BQwTLsDnQAXhxj3MtRPwJZ3z4LLbb+SgB7TybNqblbvm3hlY2ASJ13fYwVfSsp0 = 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=BfddyXTf5NF5UqJ9+l2Vr41IWxc=; b=BRgsw9HvpoOCvxfjg N+SSiT7csVkGxY2IQ2hqWejci6Lr5WEt1UdzN19GEoK4d5xUT91DDsAxHoP3QkP1 IOeWFrOqlfI1ePMurPfFvvB2kSeOcNFTnoVE2/hdroSIN6H2sYFWyVuWZhmQv5Gj ULqTgG2dkSXEaKyyR1LoaLL29c= Received: (qmail 47157 invoked by alias); 13 Dec 2019 12:43:36 -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 47136 invoked by uid 89); 13 Dec 2019 12:43:35 -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: Fri, 13 Dec 2019 13:43:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <74a3d5d8-2c65-bcb3-b61d-297ad5ba6d1e@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit x-cbid: 19121312-0020-0000-0000-00000397C7C1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19121312-0021-0000-0000-000021EED558 Message-Id: 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