mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 01:10:39 +02:00
fix mingw64 build and Clang warnings
This commit is contained in:
1 parent
2deba1b125
commit
41e325475c
3 files changed
+4
-5
No files matched your search
+1
-1
@@ -2903,7 +2903,7 @@ if(TargetBin)
|
||||
add_executable(${TargetBin} WIN32 ${NativeAppSource})
|
||||
if(NOT MSVC)
|
||||
target_compile_options(${TargetBin} PRIVATE $<$<CXX_COMPILER_ID:Clang>:-Wno-c++11-narrowing>)
|
||||
target_link_libraries(${TargetBin} Version Dwmapi)
|
||||
target_link_libraries(${TargetBin} Version Dwmapi Avrt)
|
||||
endif()
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${TargetBin})
|
||||
else()
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
#include <comdef.h>
|
||||
#include <atomic>
|
||||
#include <thread>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string_view>
|
||||
|
||||
@@ -141,7 +140,7 @@ bool WASAPIContext::InitOutputDevice(std::string_view uniqueId, LatencyMode late
|
||||
nullptr
|
||||
);
|
||||
if (FAILED(result)) {
|
||||
printf("Error initializing shared audio stream: %08x", result);
|
||||
printf("Error initializing shared audio stream: %08lx", result);
|
||||
audioClient3_->Release();
|
||||
device->Release();
|
||||
audioClient3_ = nullptr;
|
||||
|
||||
@@ -22,9 +22,9 @@ public:
|
||||
userdata_ = userdata;
|
||||
}
|
||||
|
||||
void EnumerateDevices(std::vector<AudioDeviceDesc> *outputDevices, bool captureDevices = false);
|
||||
void EnumerateDevices(std::vector<AudioDeviceDesc> *outputDevices, bool captureDevices = false) override;
|
||||
|
||||
bool InitOutputDevice(std::string_view uniqueId, LatencyMode latencyMode, bool *revertedToDefault);
|
||||
bool InitOutputDevice(std::string_view uniqueId, LatencyMode latencyMode, bool *revertedToDefault) override;
|
||||
|
||||
void FrameUpdate(bool allowAutoChange) override;
|
||||
|
||||
|
||||
Reference in new issue
Block a user