vs: fix a few compiler warnings

This commit is contained in:
kojin 2021-08-29 05:33:03 -04:00 committed by Kojin
parent 64cc1b106c
commit c6fc357c43
6 changed files with 6 additions and 11 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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)
{

View File

@ -1447,7 +1447,7 @@ namespace usb_pad
AddInputMap(port, (ControlID)cid, im);
}
}
catch (std::exception& err)
catch (std::exception&)
{
}

View File

@ -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>

View File

@ -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>