Page MenuHomeFreeBSD

sys/kern: quiet -Wwrite-strings
ClosedPublic

Authored by rlibby on Feb 22 2020, 9:49 PM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.