mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-06 01:30:44 +00:00
Reenable deprecation warnings, but force them to be treated as warnings
The /sdl flag forced C4996 to be treated as an error. I've set /w34996 to force it to be treated as a warning globally, and removed old pragmas that disabled it entirely.
This commit is contained in:
@@ -195,6 +195,7 @@
|
||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AdditionalOptions>/w34996 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -229,6 +230,7 @@
|
||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<AdditionalOptions>/w34996 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -275,6 +277,7 @@ powershell -Command "Start-Sleep -Seconds 2; $commit = git rev-parse --short HEA
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/w34996 %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#pragma warning(disable : 4996)
|
||||
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define NOMINMAX
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
static std::vector<HMODULE> _asiHandles;
|
||||
static bool _passThruMode = false;
|
||||
|
||||
#pragma warning(disable : 4996)
|
||||
|
||||
|
||||
typedef const char*(CDECL* PFN_wine_get_version)(void);
|
||||
typedef void (*PFN_InitializeASI)(void);
|
||||
|
||||
Reference in New Issue
Block a user