From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by sourceware.org (Postfix) with ESMTPS id 2ED8C3858CDA for ; Thu, 10 Nov 2022 18:45:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2ED8C3858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=aaronballman.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aaronballman.com Received: by mail-qt1-x832.google.com with SMTP id hh9so1458976qtb.13 for ; Thu, 10 Nov 2022 10:45:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aaronballman.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qJ/kHtFHJXffXhoUWQOxL/fgoxhH/25qKnHOHBzP4yM=; b=JEu/xfA/LH2q0vH+8q4EFEePuyqaK8xQJKEOYiH7T9qA7vrOf47G6+t4NxXvkz6o6a e2kzeMO/3c3BBlo491nboU59QcfrotegmjIPjLhHHjbrdRqTuIIi0PZEWErkppI41skz GfQaSjRd3MHq9AfD4NiwzdyByTfcZa4dbiNKNibXu3smlYh1x87tifMoeDVHuShORWo7 wIT6GrG0YA5PnLGEIKe+JtKP9PN6GE6Lqg8uICHSoapUxiQ1qH0pLUWIpvfxd9UrLz+C hqSR8LJTTtTIQnQUPnVl5X1IKKW3JU785pgTKj6RP5J6BiR10M65BCbGjG5g8Ngtnu7m puRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qJ/kHtFHJXffXhoUWQOxL/fgoxhH/25qKnHOHBzP4yM=; b=jHct9W64A9SJ5aqhu4yT1ir7OnByXHC/80ASOuxXtNgPa8Kyk0IjnzOufEGhTzOvml dMrszyQoFOQSEOUS2pJtgA00TmlWKBb+gJiY/7vefkKhzoqSFKryRMIOnOYjHc/Z+wjg NsOIxLZKuBHHvAy22+BIl2ODueK6tKY3RE7Arl4wWGSfkeZUE/XWc4zOUmTtWYh2aXQj MNxNloxar80R3Ys8sCWDjudOSCmJg48qxM3aBLrw5DdJIO+AuyFdUZBQRKedq/fEAKJO Yi3Qw+ib//wCqQ6hTD2TUfIUP7xscbfJ/I8yBFEwuUV4GOZR0nE270ZDM7sCZTx6MdAH uhxA== X-Gm-Message-State: ACrzQf0OHZMRICoBhpVgOe4774wkIvTxlztAmNzwPsTWY21YUnugwaEH 7Ejx7mpo+HXwg6DsmFSTzOTsH2DTSpG2qNgR X-Google-Smtp-Source: AMsMyM7RAo8uGir1kbBiv7wpTEfCuKyoIy7CdD0Jkipm/9CeFtgMj2rLebshbAGuduw4YLagrH6WcQ== X-Received: by 2002:a05:622a:1450:b0:3a5:176b:b1c7 with SMTP id v16-20020a05622a145000b003a5176bb1c7mr1670354qtx.303.1668105899409; Thu, 10 Nov 2022 10:44:59 -0800 (PST) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id u10-20020a05620a430a00b006eed75805a2sm3341qko.126.2022.11.10.10.44.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Nov 2022 10:44:58 -0800 (PST) Received: by mail-yb1-f178.google.com with SMTP id e68so552686ybh.2 for ; Thu, 10 Nov 2022 10:44:57 -0800 (PST) X-Received: by 2002:a5b:f11:0:b0:6be:94c1:65e2 with SMTP id x17-20020a5b0f11000000b006be94c165e2mr62951399ybr.283.1668105897497; Thu, 10 Nov 2022 10:44:57 -0800 (PST) MIME-Version: 1.0 References: <24ed5604-305a-4343-a1b6-a789e4723849@app.fastmail.com> In-Reply-To: From: Aaron Ballman Date: Thu, 10 Nov 2022 13:44:46 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How can Autoconf help with the transition to stricter compilation defaults? To: Jonathan Wakely Cc: Nick Bowler , gcc@gcc.gnu.org, c-std-porting@lists.linux.dev, Zack Weinberg , autoconf@gnu.org, cfe-commits@lists.llvm.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Nov 10, 2022 at 1:12 PM Jonathan Wakely via cfe-commits wrote: > > On Thu, 10 Nov 2022 at 17:58, Jonathan Wakely wrote: > > > > On Thu, 10 Nov 2022 at 17:52, Nick Bowler wrote: > > > It saddens me to see so much breakage happening in "modern C", a > > > language that has (until now) a long history of new language features > > > being carefully introduced to avoid these sort of problems. > > > > The features were introduced in 1999. > > Well, some of them were. Some more are coming now in C2x but the > problem has existed since C99 it's just that compilers "protected" > most users from having to fix their code at the time. But it's been > more than two decades and it's time to accept that missing prototypes, > implicit conversions between pointers and ints etc are a hazard and > should be diagnosed not ignored for the benefit of people who never > want to fix their questionable code. Functions without prototypes were deprecated in ANSI C and came into ISO C as deprecated. They were obsoleted with the release of the 2nd edition of K&R C (circa 1978) when prototypes were introduced, IIRC. They've literally never been a recommended practice in standard C. Implicit function declarations and implicit int were outright removed from C99 without a deprecation period due to the security concerns they caused. ~Aaron