> diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c > index bff40d7..36b5074 100644 > --- a/lib/gettimeofday.c > +++ b/lib/gettimeofday.c > @@ -33,6 +33,10 @@ > > #ifdef WINDOWS_NATIVE > > +/* Avoid warnings from gcc -Wcast-function-type. */ > +# define GetProcAddress \ > + (void *) GetProcAddress > + > /* GetSystemTimePreciseAsFileTime was introduced only in Windows 8. */ > typedef void (WINAPI * GetSystemTimePreciseAsFileTimeFuncType) (FILETIME > *lpTime); > static GetSystemTimePreciseAsFileTimeFuncType > GetSystemTimePreciseAsFileTimeFunc = NULL;
Tested and pushed to gnulib. Bruno