C4447 warning about main function format suppressed.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Wed, 21 Aug 2013 10:38:20 +0000 (03:38 -0700)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Wed, 21 Aug 2013 14:24:46 +0000 (07:24 -0700)
modules/core/perf/perf_main.cpp
modules/core/src/system.cpp
modules/core/test/test_main.cpp

index 79c28a6..7c899c2 100644 (file)
@@ -1,3 +1,8 @@
 #include "perf_precomp.hpp"
+#ifdef _MSC_VER
+# if _MSC_VER >= 1700
+#  pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
+# endif
+#endif
 
 CV_PERF_TEST_MAIN(core)
index 7e01ca5..4257665 100644 (file)
 
 #include "precomp.hpp"
 
+#ifdef _MSC_VER
+# if _MSC_VER >= 1700
+#  pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
+# endif
+#endif
+
 #if defined WIN32 || defined _WIN32 || defined WINCE
 #ifndef _WIN32_WINNT           // This is needed for the declaration of TryEnterCriticalSection in winbase.h with Visual Studio 2005 (and older?)
   #define _WIN32_WINNT 0x0400  // http://msdn.microsoft.com/en-us/library/ms686857(VS.85).aspx
index 3294fab..d5400e2 100644 (file)
@@ -1,7 +1,10 @@
-#ifdef HAVE_WINRT
-    #pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
+#ifdef _MSC_VER
+# if _MSC_VER >= 1700
+#  pragma warning(disable:4447) // Disable warning 'main' signature found without threading model
+# endif
 #endif
 
+
 #include "test_precomp.hpp"
 
 CV_TEST_MAIN("cv")