This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
volatile void * pointer conversion
- From: Josef Angermeier <sijoange at cip dot informatik dot uni-erlangen dot de>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 6 Oct 2005 09:55:30 +0200
- Subject: volatile void * pointer conversion
Hello
Is there any way to cast a volatile void pointer to e.g. a char pointer,
without getting a warning from gcc ?
Here is the warning:
pci.c:665: warning: cast discards qualifiers from pointer target type
example code:
extern int
pci_copyrom(volatile void * p)
{
unsigned char * romp;
romp = (unsigned char *) p;
thanks in advance
josef