Warning when passing int, but unsigned int is awaited?

John Love-Jensen eljay@adobe.com
Wed Feb 13 16:12:00 GMT 2008


Hi Rene,

> Is there any way to make the compiler write a warning or an error, when an int
> is passed to a function which awaits an unsigned int? I tried some of the
> options gcc gives the user, but nothing worked for me.

Try: -Wconversion

HTH,
--Eljay



More information about the Gcc-help mailing list