back port fixing GCC warnings
This commit is contained in:
parent
bd0d011536
commit
03ffc04e39
|
@ -55,6 +55,9 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
#pragma GCC diagnostic ignored "-Wnoexcept-type"
|
#pragma GCC diagnostic ignored "-Wnoexcept-type"
|
||||||
#endif
|
#endif
|
||||||
|
#if __GNUC__ >= 8
|
||||||
|
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||||
|
#endif
|
||||||
#if __GNUC__ >= 9
|
#if __GNUC__ >= 9
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
|
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace libtorrent { namespace aux {
|
||||||
if ((proc == nullptr) && !failed_proc)
|
if ((proc == nullptr) && !failed_proc)
|
||||||
{
|
{
|
||||||
HMODULE const handle = get_library_handle<Library>();
|
HMODULE const handle = get_library_handle<Library>();
|
||||||
if (handle) proc = (Signature)GetProcAddress(handle, name);
|
if (handle) proc = reinterpret_cast<Signature>(reinterpret_cast<void*>(GetProcAddress(handle, name)));
|
||||||
failed_proc = (proc == nullptr);
|
failed_proc = (proc == nullptr);
|
||||||
}
|
}
|
||||||
return proc;
|
return proc;
|
||||||
|
|
Loading…
Reference in New Issue