Re: Switch to obtain "narrowing" warnings

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

 



"j t" <mark473@xxxxxxxxx> writes:

> Excuse my newbieness, but is there a gcc switch that enables warnings
> from implicit narrowing (int -> short, for example), or is this best
> obtained from other software such as lint/splint?

-Wconversion does this, in newer versions of gcc.

Ian

[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