From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id D511F3858D3C for ; Thu, 10 Nov 2022 18:12:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D511F3858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52c.google.com with SMTP id a13so4380106edj.0 for ; Thu, 10 Nov 2022 10:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Rwseow+6T/QYwCaqYvbN75tcjytfbrhKj4ojRZhDgCk=; b=g0QuoWyGLXC3KcCpczrqxNyPYaV3A6bjQPxUGQiM93VapR66DIfNaGfDYBtqLb1ykS aixCOgxHXd713Fosu1xwbwzyyGXMeK5FlIcb0VhqU6VLkhE0F0uKkoNsKxab2Ob7VXZZ D0L/3MQ8HNn7ylVPaafd0qs73cN8e7Lapp4tLgfjHCXJjhnTCsijt7cAyJePOBi+gbTQ moghLfBdn6cP3LXeuFYPTRoUa6MNhbX6DXnvxRXLE6WhVy462vBUhsKf02y3Hyw0aBVD 2T5FUoS5U1W20+f5ObBxZtoHjQpM+xrwYzRZkL06ZtX6aFMi8mfK/OsMvrMMttUYO3hx vTYA== 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=Rwseow+6T/QYwCaqYvbN75tcjytfbrhKj4ojRZhDgCk=; b=h7tiCcGiHiPRkDRnRu3zsLieY/7/UMKinQll7XRryDYKAzgS9vAWucCDtGf9ZmJwyo vNW0Z+os+z7KsrCaO5CzbsPu/L44lKsdd5h/TWD5d/xXaGoHHJYlpV1bo9bBEt29G3Zi v3pXijy1JA78aErmLsBX2/Ppx2l/CmIjaMqQRlWbq1OFq2fKsCSc0YOGV5PpHnAHOxgH D+BG6sILwiU20ALPwkA/PWpTGGbtbUawiQWMQvYvRQ8TlrHbDQeJ/4lMNF4StgygwgPh CEINvE956mdCKD/Jv9z/oxepKSYwmztUDXrjZYmUUMMN2iQ3SpFYbSPKQ1BbDBsRAz/e 5vcw== X-Gm-Message-State: ACrzQf24eRXGdLXU6U2l927WGokOHpdMF84A5BQjf92n5K+aYPTuI9ME mdw9r477WKpsIhsexvyd4M/rejVoEpT78XI2s2I= X-Google-Smtp-Source: AMsMyM6569hOnAC4kj9CgZaVBGMhxeAsVuct9xFY2GPuQG3EkmZonj5ScIv1cCbArVYCVx2rJjO4QRb9cc+7bQodm4g= X-Received: by 2002:a05:6402:321b:b0:463:bd67:dbba with SMTP id g27-20020a056402321b00b00463bd67dbbamr2898836eda.301.1668103935548; Thu, 10 Nov 2022 10:12:15 -0800 (PST) MIME-Version: 1.0 References: <24ed5604-305a-4343-a1b6-a789e4723849@app.fastmail.com> In-Reply-To: From: Jonathan Wakely Date: Thu, 10 Nov 2022 18:12:04 +0000 Message-ID: Subject: Re: How can Autoconf help with the transition to stricter compilation defaults? To: Nick Bowler Cc: Zack Weinberg , c-std-porting@lists.linux.dev, autoconf@gnu.org, gcc@gcc.gnu.org, cfe-commits@lists.llvm.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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, 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. > Compilers just continued to > accept broken code, because people seem to think accepting garbage > forever is "compatibility".