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 921881F463 for ; Mon, 9 Dec 2019 13:00:42 +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=o7fpdrszLJNQ8Q+yFh/rL+ryJo9ZpWdspW0Svhr0kAT cA8MbVco0OTkEqrPurBaQkzTfbZkTlTBrLvlkU+fMn1fJBCBOwfH09r37tIJ/pFh jAw/d18zWpyh3BsVS0m8JdyubiDZv989g9nwRTeEbSdORLqlUJOmJ8nIvt0tytn0 = 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=gnaC1T9wSFSJpcQiXHWQ+fc2UYo=; b=xE5Ogiaf/umsGlRuC oO5q+dCfYog+xR9P00/S+7NwTWXbEa4qLZcIgbX08ObACs1wMTO2AMDKXWJzisHg 0NczvxTzQbUe9RttDQLZ3bd7x8iHkKz5/MHZ8H41mvrT4eEqJffwl4GYX/7GId8g kc+ZkN96VLs+GhGcZtBCyqmU88= Received: (qmail 127120 invoked by alias); 9 Dec 2019 13:00:39 -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 126944 invoked by uid 89); 9 Dec 2019 13:00:28 -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> From: Stefan Liebler Date: Mon, 9 Dec 2019 14:00:02 +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: <03d65724-d69b-d553-18a5-dece072e5a45@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit x-cbid: 19120913-0012-0000-0000-000003732013 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19120913-0013-0000-0000-000021AEEE67 Message-Id: <74a3d5d8-2c65-bcb3-b61d-297ad5ba6d1e@linux.ibm.com> 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