From 90c5e8612c9fce08cb8f9af4b723c0de6f8c05af Mon Sep 17 00:00:00 2001 From: "maruel@google.com" Date: Wed, 20 Aug 2008 19:54:12 +0000 Subject: Disable warning 4355 on Windows builds: "'this' : used in base member initializer list". git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1100 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_loop.cc | 1 - build/SConscript.main | 1 + build/internal/essential.vsprops | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/message_loop.cc b/base/message_loop.cc index eb10ca7..caec847 100644 --- a/base/message_loop.cc +++ b/base/message_loop.cc @@ -78,7 +78,6 @@ static LPTOP_LEVEL_EXCEPTION_FILTER GetTopSEHFilter() { //------------------------------------------------------------------------------ MessageLoop::MessageLoop() -#pragma warning(suppress: 4355) // OK, to use |this| in the initializer list. : timer_manager_(this), nestable_tasks_allowed_(true), exception_restoration_(false), diff --git a/build/SConscript.main b/build/SConscript.main index 14b8035..7965985 100644 --- a/build/SConscript.main +++ b/build/SConscript.main @@ -212,6 +212,7 @@ if env['PLATFORM'] == 'win32': '/errorReport:prompt', + '/wd4355', '/wd4503', '/wd4819', ], diff --git a/build/internal/essential.vsprops b/build/internal/essential.vsprops index d7c725b..341c7b2 100644 --- a/build/internal/essential.vsprops +++ b/build/internal/essential.vsprops @@ -19,7 +19,7 @@ WarningLevel="3" WarnAsError="true" DebugInformationFormat="3" - DisableSpecificWarnings="4503; 4819" + DisableSpecificWarnings="4355; 4503; 4819" />