Page MenuHomeFreeBSD

sys/kern: quiet -Wwrite-strings
ClosedPublic

Authored by rlibby on Feb 22 2020, 9:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 6:40 AM
Unknown Object (File)
Dec 22 2023, 11:55 PM
Unknown Object (File)
Dec 12 2023, 12:22 PM
Unknown Object (File)
Sep 6 2023, 11:08 PM
Unknown Object (File)
Sep 6 2023, 11:08 PM
Unknown Object (File)
Sep 6 2023, 11:05 PM
Unknown Object (File)
Sep 1 2023, 5:21 PM
Unknown Object (File)
Jun 25 2023, 1:08 PM
Subscribers

Details

Summary

Quiet a variety of Wwrite-strings warnings in sys/kern at low-impact
sites. This patch avoids addressing certain others which would need to
plumb const through structure definitions.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29537
Build 27402: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 22 2020, 10:11 PM
kib added inline comments.
sys/kern/kern_cons.c
101

Make this static const char [] ? What is the point of the additional indirection ?

sys/kern/kern_linker.c
1768

Again const char * const ?

This revision was automatically updated to reflect the committed changes.
rlibby marked 2 inline comments as done.