[PATCH] D122895: [C89/C2x] Improve diagnostics around strict prototypes in C
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 29 11:30:19 PDT 2022
aaron.ballman added a comment.
In D122895#3483163 <https://reviews.llvm.org/D122895#3483163>, @manojgupta wrote:
> Basically, I'm wondering if you'd be able to enable -fno-knr-function?
>
> Thanks. this looks promising. Any ideas when -fno-knr-function support was added?
Oops, I had a slight typo, it's `-fno-knr-functions` plural. But it was added 9 days ago in https://github.com/llvm/llvm-project/commit/9955f14aaf9995f6f0f7bf058ac740463003c470, and as of today, using that flag will disable the `-Wstrict-prototypes` warnings entirely (as will specifying `-std=c2x`).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122895/new/
https://reviews.llvm.org/D122895
More information about the cfe-commits
mailing list