]> git.ipfire.org Git - thirdparty/openssl.git/commit
Workaround Uplink compilation for MINGW 32bit master
authorMilan Broz <gmazyland@gmail.com>
Wed, 22 Apr 2026 13:49:33 +0000 (15:49 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Tue, 28 Apr 2026 16:02:08 +0000 (18:02 +0200)
commit95b31c03358962a2e03ae414f5d4e0925b553959
tree712384aedf5f11671b7b95957cfa3055231124d9
parent2072517dc030d6f655c0939ce588065cc96909cd
Workaround Uplink compilation for MINGW 32bit

The uplink code breaks compilation with strict warnings
for MINGW (only for 32-bit).
  error: ISO C forbids conversion of object pointer
  to function pointer type [-Werror=pedantic]
or
  error: ISO C forbids assignment between function pointer
  and 'void *' [-Werror=pedantic]

and some other missing declarations and prototypes.

As uplink.h is included in cryptlib.h and used in BIO
code, using a pragma to disable warnings would touch
to much code.

With (uintptr_t) cast, it silences cast warnings with gcc.

For the rest of the code, just disable warnings, as this
code would need to be rewritten and heavily retested
on older systems.
NOTE: applink.c is INCLUDED from uplink.h.

Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Tue Apr 28 16:02:22 2026
(Merged from https://github.com/openssl/openssl/pull/30963)
ms/applink.c
ms/uplink.c
ms/uplink.h