]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix DSO symbol test with MINGW64 and pedantic warnings
authorMilan Broz <gmazyland@gmail.com>
Wed, 22 Apr 2026 13:39:29 +0000 (15:39 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Thu, 30 Apr 2026 11:41:57 +0000 (13:41 +0200)
commit26a269fe0077eab2cd55636cec366259cdef061f
tree8ba86b7c849a14413f29f46a7dda3613200283d4
parent428bdb9c60da2cfdcab16fed7be8416bf96335df
Fix DSO symbol test with MINGW64 and pedantic warnings

GetProcAddress() cannot be simple cast to void* (SD_SYM)
under strict warnigs, as it produces this
 error: ISO C forbids conversion of function pointer to
 object pointer type [-Werror=pedantic]

Use common trick with cast to (uintptr_t).

Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Thu Apr 30 11:42:33 2026
(Merged from https://github.com/openssl/openssl/pull/30941)
test/simpledynamic.c