[PATCH] D122895: [C89/C2x] Improve diagnostics around strict prototypes in C

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 18:17:34 PDT 2022


manojgupta added a comment.

Some of our users are not very happy with the churn probably caused by this change where the declaration has the "void" argument but the later definition does not have explicit "void".

  void foo(void);
  
  void foo() 
  {
  }

GCC  does not warn about this usage: https://godbolt.org/z/zPP8qjc98

Any opinions?


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