From 64ab88fa661a1274fd3c99a3afc8ff59fd4a6ee7 Mon Sep 17 00:00:00 2001 From: pan-wang Date: Tue, 4 Oct 2016 13:51:48 -0700 Subject: [PATCH] fix build warning (#18) --- src/AspNetCore/AspNetCore.vcxproj | 14 +++++++++----- src/AspNetCore/Src/precomp.hxx | 4 +++- src/AspNetCore/Src/serverprocess.cxx | 4 +++- src/IISLib/IISLib.vcxproj | 4 ++++ 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/AspNetCore/AspNetCore.vcxproj b/src/AspNetCore/AspNetCore.vcxproj index bc85154a61..ce71ac6ea4 100644 --- a/src/AspNetCore/AspNetCore.vcxproj +++ b/src/AspNetCore/AspNetCore.vcxproj @@ -25,7 +25,7 @@ AspNetCoreModule AspNetCore aspnetcore - true + false @@ -80,6 +80,7 @@ precomp.hxx $(IntDir)$(TargetName).pch ..\IISLib;.\Inc + ProgramDatabase Windows @@ -97,6 +98,7 @@ precomp.hxx $(IntDir)$(TargetName).pch ..\IISLib;.\Inc + ProgramDatabase Windows @@ -108,17 +110,18 @@ Level3 - Create + NotUsing MaxSpeed true true WIN32;NDEBUG;_WINDOWS;_USRDLL;ASPNETCOREMODULE_EXPORTS;%(PreprocessorDefinitions) ..\IISLib;inc precomp.hxx + MultiThreadedDLL Windows - true + false true true Source.def @@ -128,17 +131,18 @@ Level3 - Create + NotUsing MaxSpeed true true WIN32;NDEBUG;_WINDOWS;_USRDLL;ASPNETCOREMODULE_EXPORTS;%(PreprocessorDefinitions) precomp.hxx ..\IISLib;inc + MultiThreadedDLL Windows - true + false true true Source.def diff --git a/src/AspNetCore/Src/precomp.hxx b/src/AspNetCore/Src/precomp.hxx index a8425be8df..8ba7f0270f 100644 --- a/src/AspNetCore/Src/precomp.hxx +++ b/src/AspNetCore/Src/precomp.hxx @@ -2,6 +2,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. #pragma once +#pragma warning( disable : 4091) // // System related headers @@ -133,4 +134,5 @@ extern PVOID g_pModuleId; extern BOOL g_fWebSocketSupported; extern BOOL g_fEnableReferenceCountTracing; extern DWORD g_dwActiveServerProcesses; -extern DWORD g_OptionalWinHttpFlags; \ No newline at end of file +extern DWORD g_OptionalWinHttpFlags; +#pragma warning( error : 4091) \ No newline at end of file diff --git a/src/AspNetCore/Src/serverprocess.cxx b/src/AspNetCore/Src/serverprocess.cxx index de3ea301ca..b8e440470c 100644 --- a/src/AspNetCore/Src/serverprocess.cxx +++ b/src/AspNetCore/Src/serverprocess.cxx @@ -57,12 +57,14 @@ SERVER_PROCESS::Initialize( { m_hJobObject = CreateJobObject(NULL, // LPSECURITY_ATTRIBUTES NULL); // LPCTSTR lpName +#pragma warning( disable : 4312) + // 0xdeadbeef is used by Antares if (m_hJobObject == NULL || m_hJobObject == (HANDLE)0xdeadbeef) { m_hJobObject = NULL; // ignore job object creation error. } - +#pragma warning( error : 4312) if (m_hJobObject != NULL) { jobInfo.BasicLimitInformation.LimitFlags = diff --git a/src/IISLib/IISLib.vcxproj b/src/IISLib/IISLib.vcxproj index 5f6181152e..8ff54a4c75 100644 --- a/src/IISLib/IISLib.vcxproj +++ b/src/IISLib/IISLib.vcxproj @@ -76,6 +76,7 @@ Disabled WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) true + ProgramDatabase Windows @@ -90,6 +91,7 @@ Disabled WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) true + ProgramDatabase Windows @@ -106,6 +108,7 @@ true WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) true + MultiThreadedDLL Windows @@ -124,6 +127,7 @@ true WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) true + MultiThreadedDLL Windows