bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New warnings on emacs-26 branch with gcc 8.2.0


From: Eli Zaretskii
Subject: Re: New warnings on emacs-26 branch with gcc 8.2.0
Date: Sun, 19 Aug 2018 05:44:11 +0300

> From: Bruno Haible <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden, address@hidden
> Date: Sun, 19 Aug 2018 02:17:52 +0200
> 
> > 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.

Thank you.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]