Avoid -Wcast-function-type warnings from casts after GetProcAddress.
commited1c87c60327fe57f74a4d5b40c235032899acce
authorBruno Haible <bruno@clisp.org>
Sat, 18 Aug 2018 21:26:06 +0000 (18 23:26 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Aug 2018 21:33:03 +0000 (18 23:33 +0200)
tree6fe14891eb264bd789d9a908d1b2f4503109fcfd
parent35d328144bd3282d1de6d16a67a04a70146315ac
Avoid -Wcast-function-type warnings from casts after GetProcAddress.

Reported by Andy Moreton <andrewjmoreton@gmail.com> in
<https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
Solution proposed by Eli Zaretskii.

* lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
* lib/gettimeofday.c (GetProcAddress): Likewise.
* lib/link.c (GetProcAddress): Likewise.
* lib/physmem.c (GetProcAddress): Likewise.
* lib/poll.c (GetProcAddress): Likewise.
* lib/select.c (GetProcAddress): Likewise.
* lib/stat-w32.c (GetProcAddress): Likewise.
ChangeLog
lib/getaddrinfo.c
lib/gettimeofday.c
lib/link.c
lib/physmem.c
lib/poll.c
lib/select.c
lib/stat-w32.c