Re: proposal to turn on some warnings by default

2014-02-27 Thread Basile Starynkevitch
On Thu, 2014-02-27 at 10:14 +0100, David Brown wrote: > On 27/02/14 07:50, Mingjie Xing wrote: > > Hello, > > > > I'm wondering if it's a good idea to turn on some warnings by default > > (or even promote them to error), such as -Wreturn-type on C. This > > would help programmers to avoid some mi

Re: proposal to turn on some warnings by default

2014-02-27 Thread Sylvestre Ledru
On 27/02/2014 07:50, Mingjie Xing wrote: > Hello, > > I'm wondering if it's a good idea to turn on some warnings by default > (or even promote them to error), such as -Wreturn-type on C. This > would help programmers to avoid some mistakes. > I am writing a patch for this specific change but it is

Re: proposal to turn on some warnings by default

2014-02-27 Thread David Brown
On 27/02/14 07:50, Mingjie Xing wrote: > Hello, > > I'm wondering if it's a good idea to turn on some warnings by default > (or even promote them to error), such as -Wreturn-type on C. This > would help programmers to avoid some mistakes. > > Regards, > Mingjie > Personally, I think gcc should

proposal to turn on some warnings by default

2014-02-26 Thread Mingjie Xing
Hello, I'm wondering if it's a good idea to turn on some warnings by default (or even promote them to error), such as -Wreturn-type on C. This would help programmers to avoid some mistakes. Regards, Mingjie