This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: missing prototypes


Maybe my C is too rusty.  Why is a prototype needed
right before the actual declaration/implementation
of the function?

Only because of the -Wmissing-prototype that is passed when building libgfortran:

$ cat a.c
#include <math.h>
float j0f (float x) { return (float) j0 ((double) x); }
$ gcc -c -W -Wall a.c -Wmissing-prototypes
a.c:2: warning: no previous prototype for 'j0f'


FX



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