Re: Where are the specific WARNS=n defined?

2011-08-23 Thread Paul Goyette
On Tue, 23 Aug 2011, Christos Zoulas wrote: I'm trying to modularize a couple of drivers, and one of them is generating some gcc errors due to comparison of signed and unsigned values. The driver module is currently being compiled with WARNS=4 (just picked that up from another Makefile). Is th

Re: Where are the specific WARNS=n defined?

2011-08-23 Thread David Holland
On Tue, Aug 23, 2011 at 03:11:27AM -0400, Mouse wrote: > [...] gcc errors due to comparison of signed and unsigned values. > >>> It is best to fix the errors. > >> In my experience, that warning produces so many more false positives > >> than useful warnings that I normally shut it off ent

Re: Where are the specific WARNS=n defined?

2011-08-23 Thread Mouse
>> It is not necessarily an error to compare signed and unsigned >> values. [...] > And it is not an error to put assignments in conditionals, or not > place parentheses to clarify operator precedence, etc. It is a > warning [...]. For some of us this is helpful. The compiler writers > try to h

Re: Where are the specific WARNS=n defined?

2011-08-23 Thread Mouse
[...] gcc errors due to comparison of signed and unsigned values. >>> It is best to fix the errors. >> In my experience, that warning produces so many more false positives >> than useful warnings that I normally shut it off entirely. > and that one time that using it might have warned you abou

Re: Where are the specific WARNS=n defined?

2011-08-23 Thread Christos Zoulas
In article <201108230521.baa12...@sparkle.rodents-montreal.org>, Mouse wrote: >>> [...] gcc errors due to comparison of signed and unsigned values. > >> It is best to fix the errors. > >What errors? > >It is not necessarily an error to compare signed and unsigned values. >In my experience, that w

Re: Where are the specific WARNS=n defined?

2011-08-22 Thread Iain Hibbert
On Tue, 23 Aug 2011, Mouse wrote: > >> [...] gcc errors due to comparison of signed and unsigned values. > > > It is best to fix the errors. > > What errors? > > It is not necessarily an error to compare signed and unsigned values. > In my experience, that warning produces so many more false posit

Re: Where are the specific WARNS=n defined?

2011-08-22 Thread Mouse
>> [...] gcc errors due to comparison of signed and unsigned values. > It is best to fix the errors. What errors? It is not necessarily an error to compare signed and unsigned values. In my experience, that warning produces so many more false positives than useful warnings that I normally shut i

Re: Where are the specific WARNS=n defined?

2011-08-22 Thread Christos Zoulas
In article , Paul Goyette wrote: >I'm trying to modularize a couple of drivers, and one of them is >generating some gcc errors due to comparison of signed and unsigned >values. > >The driver module is currently being compiled with WARNS=4 (just picked >that up from another Makefile). Is there

Where are the specific WARNS=n defined?

2011-08-22 Thread Paul Goyette
I'm trying to modularize a couple of drivers, and one of them is generating some gcc errors due to comparison of signed and unsigned values. The driver module is currently being compiled with WARNS=4 (just picked that up from another Makefile). Is there a more appropriate WARNS=n to use to p