Duplicate -Wdeprecated-non-prototype warnings with K&R style function declarations #58181
Labels
c
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
confirmed
Verified by a second party
I was trying to find the source of some duplicate warnings coming out of some open-source test code that we run as part of our CI testing and narrowed it down to the following testcase:
https://godbolt.org/z/Y63Ten1Gn
I'm not really very au-fait with pre-ANSI C (I was suprised to find it nestled inside one file in the codebase we were testing) so I'm not sure how correct or otherwise the above code is, but it seems odd to get the identical warning at
2:12
twice regardless. Similarly, I'm not even sure if any of the warnings emitted are actually valid. I could believe it either way.CC: @AaronBallman as at a guess it may be related to 11da1b5
The text was updated successfully, but these errors were encountered: