Fix MSVC release mode compilation error.
authorFrancois Pichet <pichet2000@gmail.com>
Sat, 2 Oct 2010 03:26:54 +0000 (03:26 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Sat, 2 Oct 2010 03:26:54 +0000 (03:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115407 91177308-0d34-0410-b5e6-96231b3b80d8

utils/unittest/UnitTestMain/TestMain.cpp

index 4e4c210fcd2e32e1b3945db25c08f3aa9d1aee2c..805dbd8cc5102108ab7e3b8fad443d59b7a0da29 100644 (file)
@@ -29,12 +29,12 @@ int main(int argc, char **argv) {
   ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
 #   if defined(_MSC_VER)
     ::_set_error_mode(_OUT_TO_STDERR);
-    ::_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
-    ::_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
-    ::_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
-    ::_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
-    ::_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
-    ::_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
+    _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
+    _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
+    _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
+    _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
+    _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
+    _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
 #   endif
 # endif