explain this warning

Eric Norum eric.norum at usask.ca
Fri Apr 19 19:44:40 UTC 2002


On Friday, April 19, 2002, at 12:33 PM, Joel Sherrill wrote:

>
> in gcc..
>
> ../../gcc-to-merge/gcc/gthr-rtems.h: At top level:
> ../../gcc-to-merge/gcc/gthr-rtems.h:54: warning: function declaration
> isn't a prototype
> ../../gcc-to-merge/gcc/gthr-rtems.h:77: warning: function declaration
> isn't a prototype
>
>

Just add the void argument prototype to the the offending lines:

extern int rtems_gxx_once (__gthread_once_t *once, void (*func) (void));
__gthread_once (__gthread_once_t *once, void (*func) (void))

and add the void argument prototype to src/lib/libc/gxx_wrappers.c too.

--
Eric Norum <eric.norum at usask.ca>
Department of Electrical Engineering
University of Saskatchewan
Saskatoon, Canada.
Phone: (306) 966-5394   FAX:   (306) 966-5407




More information about the users mailing list