distributions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: distributions@lists.linux.dev, "A. Wilcox" <AWilcox@wilcox-tech.com>
Subject: Re: ISO C23 removal of unprototyped functions
Date: Wed, 08 Feb 2023 13:01:37 +0100	[thread overview]
Message-ID: <3651423.PdnHiajgbn@nimes> (raw)
In-Reply-To: <199D8658-C6E9-434F-8F5D-B0D79A86080C@Wilcox-Tech.com>

A. Wilcox asked:
> What is the minimum version of GCC to detect this?
> 
> Is there a warning flag that could pick it up before this commit was
> introduced?
> 
> Is the only released compiler that can warn on this Clang 15?[1]

As far as I understand from [1][2]:

The way to get exactly the pertinent diagnostics is to use clang 15
with options
  -std=c2x -Wincompatible-function-pointer-types
and look at all errors and warnings.

If one uses clang 15 with options
  -std=c17 -Wdeprecated-non-prototype
and looks at all warnings, one gets most, but not all, of the needed
diagnostics.

If one uses GCC 12, there are not the appropriate warning options. [2]

Bruno

[1] https://discourse.llvm.org/t/unresolved-issues-from-the-llvm-15-x-release/66071/34
[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108694#c2




      reply	other threads:[~2023-02-08 12:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-07 12:14 ISO C23 removal of unprototyped functions Bruno Haible
2023-02-07 13:58 ` alice
2023-02-08 11:02 ` A. Wilcox
2023-02-08 12:01   ` Bruno Haible [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3651423.PdnHiajgbn@nimes \
    --to=bruno@clisp.org \
    --cc=AWilcox@wilcox-tech.com \
    --cc=distributions@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).