]> git.ipfire.org Git - thirdparty/xz.git/commit
tuklib_physmem: Silence warning from -Wcast-function-type on MinGW-w64.
authorJia Tan <jiat0218@gmail.com>
Thu, 19 Jan 2023 12:35:09 +0000 (20:35 +0800)
committerJia Tan <jiat0218@gmail.com>
Fri, 3 Feb 2023 13:38:13 +0000 (21:38 +0800)
commit257dbff0ba1a7bc45a74d203ece015c9f70c88cd
treeca3eb34652443891ce42f3ec237344fbe838c78c
parent720ad4a44282a7ee59aa9920eaf495d85d245d97
tuklib_physmem: Silence warning from -Wcast-function-type on MinGW-w64.

tuklib_physmem depends on GetProcAddress() for both MSVC and MinGW-w64
to retrieve a function address. The proper way to do this is to cast the
return value to the type of function pointer retrieved. Unfortunately,
this causes a cast-function-type warning, so the best solution is to
simply ignore the warning.
src/common/tuklib_physmem.c