[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1229779614.1668.5.camel@prima.yankeeboysoftware.com>
Date:	Sat, 20 Dec 2008 13:26:54 +0000
From:	Jack <gridley@...keeboysoftware.com>
To:	linux-kernel@...r.kernel.org
Subject: Kernel module compiler warnings
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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
