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)
Sat, Jan 25, 8:05 PM
Unknown Object (File)
Wed, Jan 22, 10:26 PM
Unknown Object (File)
Sat, Jan 18, 5:13 PM
Unknown Object (File)
Dec 17 2024, 11:46 AM
Unknown Object (File)
Dec 4 2024, 8:53 PM
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
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.