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: Sat, 18 Aug 2018 21:44:20 +0300

> From: Paul Eggert <address@hidden>
> Date: Sat, 18 Aug 2018 10:19:54 -0700
> Cc: Andy Moreton <address@hidden>, address@hidden
> 
> Bruno Haible wrote:
> > This code uses GetProcAddress so that it can exploit
> > features of newer Windows versions while at the same time still
> > work on older Windows versions.
> 
> Can this problem be addressed a bit better by using GetProcAddress only 
> inside 
> #ifndef HAVE_GETSYSTEMTIMEPRECISEASFILETIME code on builds for MS-Windows 7 
> and 
> earlier, and directly using GetSystemTimePreciseAsFileTime on builds for 
> MS-Windows 8 and later? That should fix the warning on builds for newer 
> MS-Windows, which might be good enough.

Why not use the same method we used in the rest of Emacs instead of
jumping through all of those hoops?

And your suggestion will not work, because at build time it is not
known on what version of the OS will the code run.

> >   3) Remove -Wcast-function-type from the compiler options.
> 
> If we do this in Emacs builds, it should be done only for MS-Windows since 
> the 
> warning is generally useful on other platforms.

There's no need to disable this warning at all.



reply via email to

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