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, Sep 23, 6:21 AM
Unknown Object (File)
Mon, Sep 16, 4:34 PM
Unknown Object (File)
Thu, Sep 5, 3:47 PM
Unknown Object (File)
Thu, Sep 5, 9:24 AM
Unknown Object (File)
Tue, Sep 3, 4:05 AM
Unknown Object (File)
Aug 17 2024, 10:14 PM
Unknown Object (File)
Jul 23 2024, 11:34 AM
Unknown Object (File)
Jul 16 2024, 12:48 PM
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.