[cfe-dev] [Warning] Signed mistach for basic datatype.
umesh.kalappa0 at gmail.com
Fri Dec 6 02:41:00 PST 2013
Hi All ,
The below sample caught my attention i.e
int a ;
unsigned int b;
return a =b;
the compiler didn't warn me about the signed mismatch in the above case.
int *a ;
unsigned int *b;
compiler warns me as
warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
I’m bit confused or i'm missing something here .
any thoughts ??
More information about the cfe-dev