File tree Expand file tree Collapse file tree 11 files changed +4
-47
lines changed Expand file tree Collapse file tree 11 files changed +4
-47
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,6 @@ if(MSVC)
309
309
if (MSVC_VERSION EQUAL 1400 )
310
310
ocv_warnings_disable (CMAKE_CXX_FLAGS /wd4510 /wd4610 /wd4312 /wd4201 /wd4244 /wd4328 /wd4267 )
311
311
endif ()
312
- if (MSVC_VERSION LESS 1900 ) # MSVS2015
313
- ocv_warnings_disable (CMAKE_CXX_FLAGS /wd4127 ) # warning C4127: conditional expression is constant
314
- endif ()
315
312
endif ()
316
313
317
314
# allow extern "C" functions throw exceptions
@@ -323,6 +320,7 @@ if(MSVC)
323
320
endforeach ()
324
321
325
322
if (NOT ENABLE_NOISY_WARNINGS )
323
+ ocv_warnings_disable (CMAKE_CXX_FLAGS /wd4127 ) # conditional expression is constant
326
324
ocv_warnings_disable (CMAKE_CXX_FLAGS /wd4251 ) # class 'std::XXX' needs to have dll-interface to be used by clients of YYY
327
325
ocv_warnings_disable (CMAKE_CXX_FLAGS /wd4324 ) # 'struct_name' : structure was padded due to __declspec(align())
328
326
ocv_warnings_disable (CMAKE_CXX_FLAGS /wd4275 ) # non dll-interface class 'std::exception' used as base for dll-interface class 'cv::Exception'
Original file line number Diff line number Diff line change 44
44
#define _ncvtest_hpp_
45
45
46
46
#if defined _MSC_VER
47
- # pragma warning( disable : 4201 4408 4127 4100)
47
+ # pragma warning( disable : 4201 4408 4100)
48
48
#endif
49
49
50
50
#include < string>
Original file line number Diff line number Diff line change @@ -45,10 +45,6 @@ The references are:
45
45
#include " precomp.hpp"
46
46
#include " agast_score.hpp"
47
47
48
- #ifdef _MSC_VER
49
- #pragma warning( disable : 4127 )
50
- #endif
51
-
52
48
namespace cv
53
49
{
54
50
Original file line number Diff line number Diff line change @@ -44,10 +44,6 @@ The references are:
44
44
45
45
#include " agast_score.hpp"
46
46
47
- #ifdef _MSC_VER
48
- #pragma warning( disable : 4127 )
49
- #endif
50
-
51
47
namespace cv
52
48
{
53
49
Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ The references are:
48
48
#include " opencv2/core/hal/intrin.hpp"
49
49
50
50
#include " opencv2/core/openvx/ovx_defs.hpp"
51
- #if defined _MSC_VER
52
- # pragma warning( disable : 4127)
53
- #endif
54
51
55
52
namespace cv
56
53
{
Original file line number Diff line number Diff line change @@ -78,18 +78,11 @@ extern "C" {
78
78
namespace cv
79
79
{
80
80
81
- #ifdef _MSC_VER
82
- # pragma warning(push)
83
- # pragma warning(disable:4324) // structure was padded due to __declspec(align())
84
- #endif
85
81
struct JpegErrorMgr
86
82
{
87
83
struct jpeg_error_mgr pub;
88
84
jmp_buf setjmp_buffer;
89
85
};
90
- #ifdef _MSC_VER
91
- # pragma warning(pop)
92
- #endif
93
86
94
87
struct JpegSource
95
88
{
Original file line number Diff line number Diff line change 47
47
48
48
#include " opencv2/core/openvx/ovx_defs.hpp"
49
49
50
- #ifdef _MSC_VER
51
- #pragma warning( disable: 4127 ) // conditional expression is constant
52
- #endif
53
-
54
50
#if CV_SIMD128
55
51
#define CV_MALLOC_SIMD128 16
56
52
#endif
Original file line number Diff line number Diff line change 34
34
#endif
35
35
36
36
#ifdef _MSC_VER
37
- #pragma warning( disable: 4127 ) // conditional expression is constant
38
37
#pragma warning( disable: 4503 ) // decorated name length exceeded, name was truncated
39
38
#endif
40
39
Original file line number Diff line number Diff line change @@ -7976,20 +7976,11 @@ GTEST_API_ std::string AppendUserMessage(
7976
7976
// std::runtime_error inherits from std::exception, many testing
7977
7977
// frameworks know how to extract and print the message inside it.
7978
7978
7979
- #ifdef _MSC_VER
7980
- # pragma warning(push) // Saves the current warning state.
7981
- # pragma warning(disable:4275) // Temporarily disables warning 4275.
7982
- #endif // _MSC_VER
7983
-
7984
7979
class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {
7985
7980
public:
7986
7981
explicit GoogleTestFailureException(const TestPartResult& failure);
7987
7982
};
7988
7983
7989
- #ifdef _MSC_VER
7990
- # pragma warning(pop) // Restores the warning state.
7991
- #endif // _MSC_VER
7992
-
7993
7984
#endif // GTEST_HAS_EXCEPTIONS
7994
7985
7995
7986
// A helper class for creating scoped traces in user programs.
Original file line number Diff line number Diff line change 51
51
#define CALC_FFMPEG_VERSION (a,b,c ) ( a<<16 | b<<8 | c )
52
52
53
53
#if defined _MSC_VER && _MSC_VER >= 1200
54
- #pragma warning( disable: 4244 4510 4512 4610 )
54
+ #pragma warning( disable: 4244 4510 4610 )
55
55
#endif
56
56
57
57
#ifdef __GNUC__
@@ -83,7 +83,7 @@ extern "C" {
83
83
#endif
84
84
85
85
#if defined _MSC_VER && _MSC_VER >= 1200
86
- #pragma warning( default: 4244 4510 4512 4610 )
86
+ #pragma warning( default: 4244 4510 4610 )
87
87
#endif
88
88
89
89
#ifdef NDEBUG
You can’t perform that action at this time.
0 commit comments