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)
Oct 9 2024, 5:44 PM
Unknown Object (File)
Oct 5 2024, 9:57 PM
Unknown Object (File)
Oct 4 2024, 3:50 PM
Unknown Object (File)
Sep 25 2024, 5:22 AM
Unknown Object (File)
Sep 21 2024, 4:48 AM
Unknown Object (File)
Sep 10 2024, 11:59 PM
Unknown Object (File)
Sep 4 2024, 6:40 AM
Unknown Object (File)
Aug 29 2024, 4:27 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #68687)

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

sys/kern/kern_linker.c
1768 ↗(On Diff #68687)

Again const char * const ?

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