[llvm-commits] [llvm] r115407 - /llvm/trunk/utils/unittest/UnitTestMain/TestMain.cpp
Francois Pichet
pichet2000 at gmail.com
Fri Oct 1 20:26:54 PDT 2010
Author: fpichet
Date: Fri Oct 1 22:26:54 2010
New Revision: 115407
URL: http://llvm.org/viewvc/llvm-project?rev=115407&view=rev
Log:
Fix MSVC release mode compilation error.
Modified:
llvm/trunk/utils/unittest/UnitTestMain/TestMain.cpp
Modified: llvm/trunk/utils/unittest/UnitTestMain/TestMain.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/UnitTestMain/TestMain.cpp?rev=115407&r1=115406&r2=115407&view=diff
==============================================================================
--- llvm/trunk/utils/unittest/UnitTestMain/TestMain.cpp (original)
+++ llvm/trunk/utils/unittest/UnitTestMain/TestMain.cpp Fri Oct 1 22:26:54 2010
@@ -29,12 +29,12 @@
::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
More information about the llvm-commits
mailing list