diff options
author | Francois Pichet <pichet2000@gmail.com> | 2010-10-02 03:26:54 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2010-10-02 03:26:54 +0000 |
commit | 43b04fa17e2836ba6c55d1dd28f8d75dff451e70 (patch) | |
tree | 40b92bc51a3e89ea49373bce7792fefe2114d302 /utils/unittest | |
parent | b32944d21419b7b6ba476619e703529e6c3dd646 (diff) | |
download | external_llvm-43b04fa17e2836ba6c55d1dd28f8d75dff451e70.zip external_llvm-43b04fa17e2836ba6c55d1dd28f8d75dff451e70.tar.gz external_llvm-43b04fa17e2836ba6c55d1dd28f8d75dff451e70.tar.bz2 |
Fix MSVC release mode compilation error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r-- | utils/unittest/UnitTestMain/TestMain.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/unittest/UnitTestMain/TestMain.cpp b/utils/unittest/UnitTestMain/TestMain.cpp index 4e4c210..805dbd8 100644 --- a/utils/unittest/UnitTestMain/TestMain.cpp +++ b/utils/unittest/UnitTestMain/TestMain.cpp @@ -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 |