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: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 13F1F1F453 for ; Thu, 2 May 2019 11:28:19 +0000 (UTC) Received: from localhost ([127.0.0.1]:49416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM9sv-0006J4-Io for normalperson@yhbt.net; Thu, 02 May 2019 07:28:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM9ss-0006Iw-A7 for bug-gnulib@gnu.org; Thu, 02 May 2019 07:28:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM9sr-0004kN-7K for bug-gnulib@gnu.org; Thu, 02 May 2019 07:28:14 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::9]:33022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hM9sq-0004gJ-9M for bug-gnulib@gnu.org; Thu, 02 May 2019 07:28:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1556796488; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=UFhi85uTgvA0eKPG26xYeMQNz1kpOkX+L6FoGrRdveA=; b=bdbEH3KHC9ixTezA0xmE5dj5BjNgtfXTS591v4bJ3Mxyk9Ww1XWu0a6KYaviVwjksT kkBGDug5n7usd3zwkzztYt/2ATzj+ANVaKoS2D+bKp32+BDwObBO+tclROSTYHOaQ0SY tNf79cO3T76qDfWIYDdt1525Rs/HyK752+W5/y5GRHOk34O0MAGnJMVYLeyYm2z//TVk OGsrBPr7bDevk525gRrW6jOpZ+Z1rsfTknG2b7o2bVCHxm2YE69LihaD4BlAw3PPF0eG xL1EGizXcGx9WkdmLfuFYd7aB8kjEOYRPsyK4nOLm/KZ035PFBiA8FGPuIvmoCKMbp8M IAGA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGaf0y5RW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.18 DYNA|AUTH) with ESMTPSA id m03afev42BS6PUF (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 2 May 2019 13:28:06 +0200 (CEST) From: Bruno Haible To: Tim =?ISO-8859-1?Q?R=FChsen?= Subject: Re: Add new macro gl_WARN_ADD_MULTIPLE Date: Thu, 02 May 2019 13:28:06 +0200 Message-ID: <2257709.fdK9HbcKnj@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <6769f8ed-5238-49ab-541e-1d6045f407ae@gmx.de> References: <87muk5n5kn.fsf@gmail.com> <1655778.gdfP1bncFA@omega> <6769f8ed-5238-49ab-541e-1d6045f407ae@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::9 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org, Alex Gramiak Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Tim, > Mentioned 2 years ago (but being still too busy to make a gnulib module > from it); Wget2's implementation using --help=warnings is here and FSF > copyrighted: > > https://gitlab.com/gnuwget/wget2/blob/master/m4/wget_manywarnings.m4 > > And how to use / fine-tune it can be seen in L106 of > > https://gitlab.com/gnuwget/wget2/blob/master/configure.ac Does this implementation of manywarnings support only the case where you want all possible warnings except an explicitly specified set? Or also the case where you want only an explicitly specified set of warnings? Although I think that the first approach is the better one in the long run, some projects may want to use the second approach, and the gnulib module so far supports both approaches. > There is gcc and clang support. This way of detecting clang is not portable: case $CC in *gcc*) CCNAME="gcc";; *clang*) CCNAME="clang";; esac On FreeBSD, for example, $CC = "cc" is clang but you cannot know it by looking at the command name. You need to run the preprocessor and see how it processes #if defined __clang__ Bruno