Re: Warning when passing int, but unsigned int is awaited?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux