const-correctness warnings from gcc -Wwrite-strings?
From: Chris Peterson
Date: Mon May 04 2009 - 20:01:19 EST
I am preparing a patch that would fix some const-correctness warnings
when compiling the kernel with gcc -Wwrite-strings. I am not (yet?)
proposing that the kernel Makefile should use -Wwrite-strings.
String constants are not writable, but without -Wwrite-strings, gcc
pretends string constants have type non-const char[] to support lazy
legacy code. :)
Are these fixes of any interest? The only controversy I see is that
some of the changes affect the function signatures of some ops
structures' function pointers.
chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/