From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bruno Haible Newsgroups: gmane.emacs.devel,gmane.comp.lib.gnulib.bugs Subject: Re: New warnings on emacs-26 branch with gcc 8.2.0 Date: Sun, 19 Aug 2018 02:17:52 +0200 Message-ID: <2275263.u1PPGQUdRC@omega> References: <86a7q0ai2z.fsf@gmail.com> <83d0uffrft.fsf@gnu.org> <2510628.alnMaqBdeU@omega> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: blaine.gmane.org 1534637776 20294 195.159.176.226 (19 Aug 2018 00:16:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2018 00:16:16 +0000 (UTC) User-Agent: KMail/5.1.3 (Linux/4.4.0-130-generic; KDE/5.18.0; x86_64; ; ) Cc: andrewjmoreton@gmail.com, eggert@cs.ucla.edu, bug-gnulib@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 02:16:12 2018 Return-path: Envelope-to: ged-emacs-devel@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 1frBO7-00058z-Iv for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2018 02:16:11 +0200 Original-Received: from localhost ([::1]:40952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frBQC-0007rI-Tm for ged-emacs-devel@m.gmane.org; Sat, 18 Aug 2018 20:18:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frBQ3-0007qj-2O for emacs-devel@gnu.org; Sat, 18 Aug 2018 20:18:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frBQ2-0007Zl-Fg for emacs-devel@gnu.org; Sat, 18 Aug 2018 20:18:11 -0400 Original-Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:36628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1frBPz-00074W-9e; Sat, 18 Aug 2018 20:18:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1534637885; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=2WiH6f1pfjLJTPHyB42hD/o/+OvNqb71pshlTrLY/GY=; b=nXGogyvL4PWs/PbKUC5PP5hh6kSS5WzEhxkNr0QREIT3CMpZHBh1FqRUjbHFZYkqE8 T8s6/pbNB5Zg1cAB3LlKrE2X4qO0LlEjMNrLguA/FIvZBSmf7+qTP1YpP3ZxkZEvrDh1 uzf9DRaZd8qdNGm/IQGwVnyWpz3uXBHfm1nJnLOHVLjdsNF8wAdsEQDaXYLwXH3AswtH klBjtLxN78JYamRpRHBl1DgXvVjniwFTUVG31NItqM49y8agd+uoiVCB65chTcQRqrwp MZjF1eTROWmkXzvnaKsvBWOgwEQ3GcgwY7Id+w3J5f/LeBNUz1PZo6o9ml8Sb1hfKHD8 8U/w== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf9yfs=" X-RZG-CLASS-ID: mo00 Original-Received: from bruno.haible.de by smtp.strato.de (RZmta 43.18 DYNA|AUTH) with ESMTPSA id n0457au7J0HrLcG (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sun, 19 Aug 2018 02:17:53 +0200 (CEST) In-Reply-To: <2510628.alnMaqBdeU@omega> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228671 gmane.comp.lib.gnulib.bugs:39229 Archived-At: > 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