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: Bruno Haible
Subject: Re: New warnings on emacs-26 branch with gcc 8.2.0
Date: Sun, 19 Aug 2018 02:17:52 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-130-generic; KDE/5.18.0; x86_64; ; )

> 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




reply via email to

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