From 24fdbe567638d942fff6b1cf3df3cb4f5adf6823 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Tue, 25 Mar 2014 08:42:49 +0000 Subject: Disable Visual C++ warning 4722 about aborting a destructor, it has no value for us. llvm-svn: 204704 --- llvm/lib/Support/Process.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'llvm/lib/Support/Process.cpp') diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp index d5168f03a6d..0380ed955dd 100644 --- a/llvm/lib/Support/Process.cpp +++ b/llvm/lib/Support/Process.cpp @@ -34,14 +34,6 @@ self_process *process::get_self() { return SP; } -#if defined(_MSC_VER) -// Visual Studio complains that the self_process destructor never exits. This -// doesn't make much sense, as that's the whole point of calling abort... Just -// silence this warning. -#pragma warning(push) -#pragma warning(disable:4722) -#endif - // The destructor for the self_process subclass must never actually be // executed. There should be at most one instance of this class, and that // instance should live until the process terminates to avoid the potential for @@ -75,11 +67,6 @@ TimeValue self_process::get_wall_time() const { } -#if defined(_MSC_VER) -#pragma warning(pop) -#endif - - #define COLOR(FGBG, CODE, BOLD) "\033[0;" BOLD FGBG CODE "m" #define ALLCOLORS(FGBG,BOLD) {\ -- cgit v1.2.3