mirror of https://github.com/PCSX2/pcsx2.git
Misc: Fix clang warnings
This commit is contained in:
parent
87d392adb5
commit
cd6590e15c
|
@ -359,7 +359,7 @@ GSRendererType D3D::GetPreferredRenderer()
|
|||
if (!adapter)
|
||||
return GSRendererType::DX11;
|
||||
|
||||
const auto get_d3d11_feature_level = [&factory, &adapter]() -> std::optional<D3D_FEATURE_LEVEL> {
|
||||
const auto get_d3d11_feature_level = [&adapter]() -> std::optional<D3D_FEATURE_LEVEL> {
|
||||
static const D3D_FEATURE_LEVEL check[] = {
|
||||
D3D_FEATURE_LEVEL_12_0,
|
||||
D3D_FEATURE_LEVEL_11_0,
|
||||
|
@ -378,7 +378,7 @@ GSRendererType D3D::GetPreferredRenderer()
|
|||
Console.WriteLn("D3D11 feature level for autodetection: %x", static_cast<unsigned>(feature_level));
|
||||
return feature_level;
|
||||
};
|
||||
const auto get_d3d12_device = [&factory, &adapter]() {
|
||||
const auto get_d3d12_device = [&adapter]() {
|
||||
wil::com_ptr_nothrow<ID3D12Device> device;
|
||||
const HRESULT hr = D3D12CreateDevice(adapter.get(), D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS(device.put()));
|
||||
if (FAILED(hr))
|
||||
|
|
|
@ -29,7 +29,7 @@ GSRenderer* CURRENT_ISA::makeGSRendererSW(int threads)
|
|||
|
||||
#define LOG 0
|
||||
|
||||
static FILE* s_fp = LOG ? fopen("c:\\temp1\\_.txt", "w") : NULL;
|
||||
[[maybe_unused]] static FILE* s_fp = LOG ? fopen("c:\\temp1\\_.txt", "w") : nullptr;
|
||||
|
||||
static constexpr GSVector4 s_pos_scale = GSVector4::cxpr(1.0f / 16, 1.0f / 16, 1.0f, 128.0f);
|
||||
|
||||
|
|
|
@ -54,7 +54,6 @@ BIOS
|
|||
#endif
|
||||
|
||||
int MemMode = 0; // 0 is Kernel Mode, 1 is Supervisor Mode, 2 is User Mode
|
||||
static int s_ba6 = 0;
|
||||
|
||||
static u16 s_ba[0xff];
|
||||
static u16 s_dve_regs[0xff];
|
||||
|
|
Loading…
Reference in New Issue