volatile void * pointer conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux