How to resolve: "cast to pointer from integer of different size" warning in C code?

Viewed 83516

I am removing gcc warnings from a legacy code.

Is it possible to suppress the warning "cast to pointer from integer of different size" through typecasting:

example:

some_struct *ptr = func()  // func() returns an integer.

Can someone please guide me how to resolve such gcc warnings?

3 Answers
Related