Kernel module compiler warnings
From: Jack
Date: Sat Dec 20 2008 - 08:27:19 EST
Could someone kindly explain why I see these warnings:
warning: passing argument X of 'SOME_TYPE_HERE' discards qualifiers from
pointer target type.
I know *what* is causing the error - it's a cast removing a const
e.g.
void foo(const my_type *a)
{
bar( (my_type*)a );
}
What I don't understand is that it only seems to be emitted when I
compile on my 32 bit machine. Compiling on my 64bit machine does not
generate this warning
Thank you,
Jack
--
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/