From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: New warnings on emacs-26 branch with gcc 8.2.0 Date: Sun, 19 Aug 2018 05:44:11 +0300 Message-ID: <836007f538.fsf@gnu.org> References: <86a7q0ai2z.fsf@gmail.com> <83d0uffrft.fsf@gnu.org> <2510628.alnMaqBdeU@omega> <2275263.u1PPGQUdRC@omega> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1534646563 29378 195.159.176.226 (19 Aug 2018 02:42:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2018 02:42:43 +0000 (UTC) Cc: andrewjmoreton@gmail.com, eggert@cs.ucla.edu, bug-gnulib@gnu.org, emacs-devel@gnu.org To: Bruno Haible Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Sun Aug 19 04:42:39 2018 Return-path: Envelope-to: gnu-bug-gnulib@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frDfr-0007Ye-0V for gnu-bug-gnulib@m.gmane.org; Sun, 19 Aug 2018 04:42:39 +0200 Original-Received: from localhost ([::1]:41334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frDhx-00041Z-Jb for gnu-bug-gnulib@m.gmane.org; Sat, 18 Aug 2018 22:44:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frDhf-00040T-Gs for bug-gnulib@gnu.org; Sat, 18 Aug 2018 22:44:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frDhc-0002O6-Ci for bug-gnulib@gnu.org; Sat, 18 Aug 2018 22:44:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frDhS-0002La-O9; Sat, 18 Aug 2018 22:44:18 -0400 Original-Received: from [176.228.60.248] (port=1432 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1frDhS-0007kT-CR; Sat, 18 Aug 2018 22:44:18 -0400 In-reply-to: <2275263.u1PPGQUdRC@omega> (message from Bruno Haible on Sun, 19 Aug 2018 02:17:52 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane.org@gnu.org Original-Sender: "bug-gnulib" Xref: news.gmane.org gmane.comp.lib.gnulib.bugs:39231 gmane.emacs.devel:228672 Archived-At: > From: Bruno Haible > Cc: bug-gnulib@gnu.org, eggert@cs.ucla.edu, andrewjmoreton@gmail.com, emacs-devel@gnu.org > 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.