mirror of https://github.com/PCSX2/pcsx2.git
vs: fix a few compiler warnings
This commit is contained in:
parent
64cc1b106c
commit
c6fc357c43
|
@ -197,7 +197,7 @@ s32 CALLBACK DISCopen(const char* pTitle)
|
|||
{
|
||||
src = std::unique_ptr<IOCtlSrc>(new IOCtlSrc(drive));
|
||||
}
|
||||
catch (std::runtime_error& ex)
|
||||
catch (std::runtime_error&)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -298,7 +298,7 @@ int pcap_io_recv(void* packet, int max_len)
|
|||
|
||||
if ((pcap_next_ex(adhandle, &header, &pkt_data1)) > 0)
|
||||
{
|
||||
if (header->len > max_len)
|
||||
if ((int)header->len > max_len)
|
||||
return -1;
|
||||
|
||||
memcpy(packet, pkt_data1, header->len);
|
||||
|
|
|
@ -140,7 +140,7 @@ int GIF_Fifo::read_fifo()
|
|||
|
||||
GIF_LOG("GIF FIFO Read %d QW from FIFO Current Size %d", sizeRead, fifoSize);
|
||||
|
||||
if (sizeRead < fifoSize)
|
||||
if (sizeRead < (int)fifoSize)
|
||||
{
|
||||
if (sizeRead > 0)
|
||||
{
|
||||
|
|
|
@ -1447,7 +1447,7 @@ namespace usb_pad
|
|||
AddInputMap(port, (ControlID)cid, im);
|
||||
}
|
||||
}
|
||||
catch (std::exception& err)
|
||||
catch (std::exception&)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -15,14 +15,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <dinput.h>
|
||||
#include <windows.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if !defined(DIRECTINPUT_VERSION)
|
||||
#define DIRECTINPUT_VERSION 0x0800
|
||||
#endif
|
||||
|
||||
#include <dinput.h>
|
||||
#include <atomic>
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>PrecompiledHeader.h</PrecompiledHeaderFile>
|
||||
<EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>
|
||||
<PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;LZMA_API_STATIC;BUILD_DX=1;SPU2X_PORTAUDIO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;LZMA_API_STATIC;BUILD_DX=1;SPU2X_PORTAUDIO;DIRECTINPUT_VERSION=0x0800;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="$(Configuration.Contains(Debug))">PCSX2_DEBUG;PCSX2_DEVBUILD;_SECURE_SCL_=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="$(Configuration.Contains(Devel))">PCSX2_DEVEL;PCSX2_DEVBUILD;NDEBUG;_SECURE_SCL_=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="$(Configuration.Contains(Release))">NDEBUG;_SECURE_SCL_=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
|
Loading…
Reference in New Issue