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=-4.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B87471F910 for ; Wed, 16 Nov 2022 01:48:05 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=kitware.com header.i=@kitware.com header.b="kfLv3D1j"; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ov7Wo-0003P2-8P; Tue, 15 Nov 2022 20:47:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ov5a5-0005x4-FG for bug-gnulib@gnu.org; Tue, 15 Nov 2022 18:43:05 -0500 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ov5a3-0000wS-Lj for bug-gnulib@gnu.org; Tue, 15 Nov 2022 18:43:05 -0500 Received: by mail-qk1-x733.google.com with SMTP id 8so10664695qka.1 for ; Tue, 15 Nov 2022 15:43:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kitware.com; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=HVOuBkpxLykIpMacwwPgJw0KdCGH7KasQ5JaihGmSog=; b=kfLv3D1joyQBXHap/pjFLobdUNyfJ7wbAyaAytTdxUAfV0Lrh9iedLV77qGaNvix0/ X5zkHVxf34BD/1L/XDxqNaIhkDj6lbJm2d4K8J7X8SSX3Oqz+V+yohUhnMM8GHM4ba1C 6PRWNQMD+v3ILVGda8WaAog0g++ZsbbgOnAtM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HVOuBkpxLykIpMacwwPgJw0KdCGH7KasQ5JaihGmSog=; b=4e3zvP8QlCb/ydzaYy2ZIaWCVUtckRTnPYKaTf6odqSWLUr/C6h8c3iZ/oLPPIt7HX Gbys7ZFDca79NJWZEBbl0wNpV++oSly4yw4DVRpXZcvnsmSRYS2tAyX4orfSlDNbjFGy R1GM3ELy2fP2cBooTjbB2vTXQBqtdq3VWg9bbW/x8h6Ni7Hk2DOYLN12c64AqSidfRyS CwFXsWaHy4MMC79lBHDz2xxdvknJg1pxB3mC/rUCOD3wiHxx/g7dFa6gWk7kY00HcHUD UvAzaxHSgk4VDe08hDpJ7QAoQoXyggVtCNWi4yEM6Ja5n1Lgto9Fk4HNU6cidwlCkHGg m26Q== X-Gm-Message-State: ANoB5plyuJOTEIcegn5QqezvqO7fURFZjPrspFSWKB7hbDXusZV5U1NO WDc6R/BAuA/gXNTrAWC1RrtXXQ== X-Google-Smtp-Source: AA0mqf7dG6LPMTGugGX1IkOqAYQjhupV4fBUcU/RU6vkOYLsPpkUumNo6JuCiQ18EnJTyJWJoiBKnA== X-Received: by 2002:a05:620a:222b:b0:6ea:39ec:e50f with SMTP id n11-20020a05620a222b00b006ea39ece50fmr17263705qkh.571.1668555782196; Tue, 15 Nov 2022 15:43:02 -0800 (PST) Received: from localhost (cpe-142-105-146-128.nycap.res.rr.com. [142.105.146.128]) by smtp.gmail.com with ESMTPSA id bn29-20020a05620a2add00b006e16dcf99c8sm8775869qkb.71.2022.11.15.15.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 15:43:01 -0800 (PST) Date: Tue, 15 Nov 2022 18:43:00 -0500 From: Ben Boeckel To: Paul Eggert Cc: Aaron Ballman , Jonathan Wakely , Zack Weinberg , c-std-porting@lists.linux.dev, autoconf@gnu.org, gcc@gcc.gnu.org, cfe-commits@lists.llvm.org, Gnulib bugs Subject: Re: How can Autoconf help with the transition to stricter compilation defaults? Message-ID: References: <7ef0ce03-d908-649a-a6ee-89fea374d2b1@cs.ucla.edu> <9cb106e9-16ff-65ec-6a44-6567c77521dc@cs.ucla.edu> <06a5d2cd-44eb-7404-17f3-ff64dd505427@cs.ucla.edu> <7ee13f9a-f3e9-8b0b-2b02-64527227fcc1@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7ee13f9a-f3e9-8b0b-2b02-64527227fcc1@cs.ucla.edu> User-Agent: Mutt/2.2.7 (2022-08-07) Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=ben.boeckel@kitware.com; helo=mail-qk1-x733.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 15 Nov 2022 20:47:48 -0500 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org On Tue, Nov 15, 2022 at 15:09:19 -0800, Paul Eggert wrote: > This may be a hack, but it's a *good* hack. It's likely to fix > real-world bugs that would be caused if Clang becomes overly pedantic by > default here. And the probability of introducing real-world bugs is > essentially zero. FWIW, CMake uses the same signature for detecting whether a function exists or not: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/CheckFunctionExists.c It's also been like this (without the `void`) for 20 years; the `void` argument was added 6 years ago: https://gitlab.kitware.com/cmake/cmake/-/commits/master/Modules/CheckFunctionExists.c --Ben