CMake improvements (#201)
- Update CMake to parity with Box2D. Removed BOX3D_AVX2 due to runtime dispatch. - CI fixes for ubuntu - Doxygen refresh from Box2D
This commit is contained in:
parent
efca0c184d
commit
f36d061ba2
21 changed files with 724 additions and 251 deletions
19
src/timer.c
19
src/timer.c
|
|
@ -169,12 +169,27 @@ static void b3SetCurrentThreadName( const char* name )
|
|||
HMODULE kernel = GetModuleHandleW( L"kernel32.dll" );
|
||||
if ( kernel != NULL )
|
||||
{
|
||||
// MSVC /Wall warns C4191 on every FARPROC function-pointer cast.
|
||||
// This is the intended use of GetProcAddress, so suppress locally.
|
||||
// MSVC /Wall warns C4191 and GCC/Clang -Wcast-function-type
|
||||
// warns on every FARPROC function-pointer cast. This is the
|
||||
// intended use of GetProcAddress, so suppress locally.
|
||||
#if defined( __clang__ )
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wcast-function-type"
|
||||
#elif defined( _MSC_VER )
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4191 )
|
||||
#elif defined( __GNUC__ )
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||
#endif
|
||||
pfn = (b3SetThreadDescriptionFn)GetProcAddress( kernel, "SetThreadDescription" );
|
||||
#if defined( __clang__ )
|
||||
#pragma clang diagnostic pop
|
||||
#elif defined( _MSC_VER )
|
||||
#pragma warning( pop )
|
||||
#elif defined( __GNUC__ )
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
resolved = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue