mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
Disable Visual C++ warning 4722 about aborting a destructor,
it has no value for us. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {\
|
||||
|
||||
Reference in New Issue
Block a user