Page MenuHomeFreeBSD

Stop adding -Wredundant-decls to CWARNFLAGS.
ClosedPublic

Authored by jhb on Feb 2 2022, 8:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 9:58 AM
Unknown Object (File)
Tue, Nov 5, 10:52 PM
Unknown Object (File)
Fri, Nov 1, 9:42 PM
Unknown Object (File)
Oct 16 2024, 11:28 PM
Unknown Object (File)
Oct 9 2024, 4:23 AM
Unknown Object (File)
Sep 30 2024, 2:24 PM
Unknown Object (File)
Sep 30 2024, 12:24 PM
Unknown Object (File)
Sep 23 2024, 6:21 AM
Subscribers

Details

Summary

clang doesn't implement it, and for GCC we've had to neuter it, so
setting it explicitly does not add any gain.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Feb 2 2022, 8:20 PM

Without this change GCC currently warns though?

Without this change GCC currently warns though?

Yes. I've fixed a few places in the past, but more keep cropping up, and upstream code in linux from linuxkpi, iwlwifi, etc. is the source of some issues because Linux doesn't care about it either. I think clang will warn if you have redundant declarations that conflict.

OK fine with me. I think it's worth noting what you mentioned above in the commit message.

This revision is now accepted and ready to land.Feb 3 2022, 7:07 PM
This revision was automatically updated to reflect the committed changes.