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 8F0E61F466 for ; Tue, 14 Jan 2020 08:23:06 +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:cc:from:date :mime-version:in-reply-to:content-type:content-transfer-encoding :message-id; q=dns; s=default; b=EkIU5r9aBfeA+zgQtyTX3bOMgxr/JzC ZoO8Yu7rd/K4PkjnfXWL0QqtEtAKJrrnSqYrLImwsnnV1oR1QF7GYoQaz1tcO4/s hfz3N/tZVKr0bhIpxGLLG8LNP08ugdT91nMEH8Z2BH28esOKnY+NdtWx/6yQWuDz xbdVlxHBW4n0= 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:cc:from:date :mime-version:in-reply-to:content-type:content-transfer-encoding :message-id; s=default; bh=ydHxXYq/QTfW6giTtAlmYxIKU3o=; b=tU+VM WHZR/V5Lwb/JUT4npFlX6JxL0IZ/ClbbIiEUWn80nnH1cXoMHLcLvm3fiK7dNwxu ZR4NYVWqIcRhsQGeQkqwF6n+LtE3leIRVx9k7d1+N7Tz3VMmEjyzbgaczcQKQalW dCqf0aDb0p2yByKq9VyLhSZfd7mi8jcS8Fcl3c= Received: (qmail 118658 invoked by alias); 14 Jan 2020 08:23:04 -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 118649 invoked by uid 89); 14 Jan 2020 08:23:03 -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> <09ae7389-db09-22db-9d83-67efc19b5046@linux.ibm.com> Cc: Siddhesh Poyarekar From: Stefan Liebler Date: Tue, 14 Jan 2020 09:22:55 +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: <09ae7389-db09-22db-9d83-67efc19b5046@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit x-cbid: 20011408-0008-0000-0000-000003492E7D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20011408-0009-0000-0000-00004A698026 Message-Id: <9ea58cad-b02c-0b27-4e6a-ae5ddd435b50@linux.ibm.com> On 1/8/20 8:47 AM, Stefan Liebler wrote: > 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 > ping