Page MenuHomeFreeBSD

clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15
ClosedPublic

Authored by imp on Nov 28 2022, 7:39 AM.
Tags
None
Referenced Files
F114782506: D37515.diff
Wed, Apr 16, 7:48 PM
F114760365: D37515.id113658.diff
Wed, Apr 16, 11:48 AM
Unknown Object (File)
Tue, Apr 15, 8:43 AM
Unknown Object (File)
Mar 10 2025, 6:48 AM
Unknown Object (File)
Feb 28 2025, 9:26 AM
Unknown Object (File)
Feb 28 2025, 2:11 AM
Unknown Object (File)
Feb 22 2025, 2:20 PM
Unknown Object (File)
Feb 22 2025, 2:00 PM
Subscribers

Details

Summary

Clang 15 enforces function definitions using the C89 form rather than
the K&R form. While not strictly a prototype (which is only for a
declaration), use the name that mirror's clang's warning name. Much code
in contrib still uses K&R function definitions, so invent this for
compiling there.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Nov 28 2022, 7:39 AM
share/mk/bsd.sys.mk
120

I would put this here maybe? I think in most other places we tend to sort these lists by compiler type first then version, so:

clang 14
clang 15
clang 16
...
gcc 10
gcc 11
gcc 12
...

share/mk/bsd.sys.mk
120

I was totally confused by your comment, and thought I'd get back to it later...
But I totally agree. You've found a mismerge I think.

This revision is now accepted and ready to land.Nov 30 2022, 5:00 PM