Heads up: new const warnings from strchr with gcc 16
Hal Murray
halmurray at sonic.net
Thu Mar 12 04:19:48 UTC 2026
Gary said:
> Isn't the fix simply:
> const char *cpw = strchr(cp, '\r')
No, that breaks something farther on that doesn't like the const.
> Kinda nice error actually.
I like type checking.
I remember when I figured out what type checking was all about. I was new
to type checking, just doing what it took to keep the compiler happy.
Then one day, I figured out what the error message was telling me. It was
something simple like it wanted a pointer to a foo but I had given it a
foo. Thank you, thank you, thank you. I remember how much fun it was to
debug that sort of problem.
--
These are my opinions. I hate spam.
More information about the devel
mailing list