Home GnuPG

w32: Fix bad-function-cast warning.

Description

w32: Fix bad-function-cast warning.

* src/w32-fd-t.inc.h (assuan_fd_from_posix_fd): Avoid compiler warning.

The actual warning was:
warning: cast from function call of type 'intptr_t' {aka 'int'} to

     non-matching type 'void *' [-Wbad-function-cast]

return (assuan_fd_t)(HANDLE) _get_osfhandle (fd);
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 27 2019, 8:28 PM
Parents
rA2fc0761aedff: doc: Minor comment cleanup and beautification.
Branches
Unknown
Tags
Unknown