[Patch, Fortran] Add -Wc-binding-type warning

2012-03-03 Thread Tobias Burnus
GNU Fortran warns by default for code like the following: interface subroutine sub (n) bind (C) integer :: n end subroutine sub end interface Namely, it prints: Warning: Variable 'n' at (1) is a parameter to the BIND(C) procedure 'sub' but may not be C interoperable That's on one

Re: [Patch, Fortran] Add -Wc-binding-type warning

2012-03-03 Thread FX
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.

Re: [Patch, Fortran] Add -Wc-binding-type warning

2012-03-03 Thread Steve Kargl
On Sat, Mar 03, 2012 at 03:23:01PM +0100, Tobias Burnus wrote: GNU Fortran warns by default for code like the following: interface subroutine sub (n) bind (C) integer :: n end subroutine sub end interface Namely, it prints: Warning: Variable 'n' at (1) is a parameter to the