compile warnings

This commit is contained in:
flyinghead 2023-01-02 16:39:34 +01:00
parent c5c87522ca
commit dd66e44871
4 changed files with 5 additions and 9 deletions

View File

@ -1240,9 +1240,8 @@ if(WIN32 AND USE_DX9 AND NOT LIBRETRO AND NOT WINDOWS_STORE)
endif()
endif()
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_D3D9)
target_link_libraries(${PROJECT_NAME} PUBLIC d3d9 d3dx9)
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_DX9)
target_link_libraries(${PROJECT_NAME} PUBLIC d3d9 d3dx9)
endif()
if(WIN32 AND USE_DX11)

View File

@ -217,9 +217,6 @@
#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
#define TARGET_UWP
#endif
#ifdef HAVE_D3D9
#define USE_DX9
#endif
#ifdef HAVE_D3D11
#define USE_DX11
#endif

View File

@ -6,8 +6,8 @@
void dc_prof_init();
void dc_prof_periodical();
#else
static void dc_prof_init() {}
static void dc_prof_periodical() {}
inline static void dc_prof_init() {}
inline static void dc_prof_periodical() {}
#endif
inline void print_array(const char* name, u32* arr,u32 size)

View File

@ -124,8 +124,8 @@ namespace fc_profiler
namespace fc_profiler
{
static void startThread(const std::string& threadName) {}
static void endThread(float warningTime = 0.0) {}
inline static void startThread(const std::string& threadName) {}
inline static void endThread(float warningTime = 0.0) {}
}
#define FC_PROFILE_SCOPE