I have this function:
If I do the following, I get no compilation warnings, but I get a seg faultCode:void func(unsigned *t) { //do something with t }
If I do this, I get one seg fault(incompatible pointer type), but it behaves how I want it to.Code:unsigned *temp; func(temp);
How can I get it working but without the warning?Code:unsigned *temp; func(&temp);
thx