mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 01:10:04 +02:00
removed Visual warning
for pointer casts
This commit is contained in:
parent
1bd6c15b6b
commit
f379637025
@ -399,6 +399,11 @@ int UTIL_countPhysicalCores(void)
|
||||
DWORD returnLength = 0;
|
||||
size_t byteOffset = 0;
|
||||
|
||||
#ifdef (_MSC_VER)
|
||||
/* Visual Studio does not like the following cast */
|
||||
# pragma warning( disable : 4054 ) /* conversion from function ptr to data ptr */
|
||||
# pragma warning( disable : 4055 ) /* conversion from data ptr to function ptr */
|
||||
#endif
|
||||
glpi = (LPFN_GLPI)(void*)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
|
||||
"GetLogicalProcessorInformation");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user