This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc doesn't warn that (unsigned > 0) is always true


David Calinski <neodave@gmx.net> writes:

| > That is not an endless loop.  in == 0 will terminate it.
| 
| 
| Right, sorry, my mistake. But it originally was while(--in >= 0), I

Use -Wextra

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]