This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] Add -Wc-binding-type warning
- From: FX <fxcoudert at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 3 Mar 2012 16:14:41 +0100
- Subject: Re: [Patch, Fortran] Add -Wc-binding-type warning
- Authentication-results: mr.google.com; spf=pass (google.com: domain of fxcoudert@gmail.com designates 10.180.104.137 as permitted sender) smtp.mail=fxcoudert@gmail.com; dkim=pass header.i=fxcoudert@gmail.com
> Thus, this patch adds a warning flag for this purpose - and it also excludes those warnings from the default setting. That's a bit in line with Fortran 2008 and TS 29113, which remove more and more constraints and force the users to ensure themselves that the variables are interoperable. However, keeping it as default warning is also fine with me.
No, please really remove them, I find them really annoying (and I think I argued against it at some point during ISO_C_BINDING merge!). They warn you not about something that is wrong, but something that is unportable and could be wrong, but probably is OK in most cases. It can have value, but not as a default warning I think.
I don't think I can approve patches given that I'm not following gfortran development very closely, but if I could I would approve it, it seems OK :)
FX