I have a portion of code along the following
lines:
volatile unsigned char x ;
unsigned int f(unsigned char *y) ;
When I do
unsigned int z = f(&x) ;
the compiler issues the following warning:
warning: passing arg 1 of `f' discards qualifiers from pointer target type
What does this exactly mean? How do I change my code so that the
compiler is happy about it?
lines:
volatile unsigned char x ;
unsigned int f(unsigned char *y) ;
When I do
unsigned int z = f(&x) ;
the compiler issues the following warning:
warning: passing arg 1 of `f' discards qualifiers from pointer target type
What does this exactly mean? How do I change my code so that the
compiler is happy about it?
Comment