Messages in this thread | | | Date | Mon, 4 May 2009 17:00:59 -0700 | Subject | const-correctness warnings from gcc -Wwrite-strings? | From | Chris Peterson <> |
| |
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
| |