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)
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
Unknown Object (File)
Jun 25 2023, 1:07 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.