jyknight added a comment.
This confuses me.
Looking at behavior with default flags:
We won't emit a -Wdeprecated-non-prototype warning for `int foo();`, until we
subsequently find `int foo(int arg) { return 5; }`. Since we definitely have
the context of what's going on at that point, in order to have determined that
there's a conflict, what prevents doing the "right thing": emitting only 1
warning (at the definition site) and 1 note (at the declaration site)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125814/new/
https://reviews.llvm.org/D125814
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits