Skip to content

Commit ca2f333

Browse files
committed
Merge pull request #3298 from tomoaki0705:fixWarnings
2 parents 79122d6 + a96a930 commit ca2f333

File tree

15 files changed

+60
-1
lines changed

15 files changed

+60
-1
lines changed

modules/aruco/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
set(the_description "ArUco Marker Detection")
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
26
ocv_define_module(aruco opencv_core opencv_imgproc opencv_calib3d WRAP python java)
37
ocv_include_directories(${CMAKE_CURRENT_BINARY_DIR})
48

modules/ccalib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
set(the_description "Custom Calibration Pattern")
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
26
ocv_define_module(ccalib opencv_core opencv_imgproc opencv_calib3d opencv_features2d opencv_highgui WRAP python)

modules/datasets/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ ocv_warnings_disable(CMAKE_CXX_FLAGS
1313
/wd4267 # flann, Win64
1414
-Wimplicit-fallthrough # tinyxml2.cpp
1515
)
16+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
17+
# suppress warnings from GCC only on 7.1 and later
18+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
19+
endif()

modules/dnn_objdetect/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
set(the_description "Object Detection using CNNs")
2-
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
36
ocv_define_module(dnn_objdetect opencv_core opencv_imgproc opencv_dnn
47
OPTIONAL opencv_highgui opencv_imgcodecs # samples
58
)

modules/dpm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ set(the_description "Object Detection")
33
ocv_define_module(dpm opencv_core opencv_imgproc opencv_objdetect OPTIONAL opencv_highgui WRAP python)
44

55
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4512) # disable warning on Win64
6+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
7+
# suppress warnings from GCC only on 7.1 and later
8+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
9+
endif()

modules/face/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
set(the_description "Face recognition etc")
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
26
ocv_define_module(face opencv_core
37
opencv_imgproc
48
opencv_objdetect
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
set(the_description "Line descriptor")
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
26
ocv_define_module(line_descriptor opencv_imgproc OPTIONAL opencv_features2d WRAP python)

modules/optflow/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
set(the_description "Optical Flow Algorithms")
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
26
ocv_define_module(optflow opencv_core opencv_imgproc opencv_video opencv_ximgproc opencv_imgcodecs opencv_flann WRAP python)

modules/rgbd/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
set(the_description "RGBD algorithms")
2+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
3+
# suppress warnings from GCC only on 7.1 and later
4+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
5+
endif()
26
ocv_define_module(rgbd opencv_core opencv_calib3d opencv_imgproc WRAP python)

modules/text/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ set(__extra_deps "")
33
if(DEBUG_opencv_text)
44
list(APPEND __extra_deps PRIVATE_REQUIRED opencv_highgui)
55
endif()
6+
if(ARM AND CV_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
7+
# suppress warnings from GCC only on 7.1 and later
8+
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-psabi)
9+
endif()
610

711
ocv_define_module(text
812
opencv_ml opencv_imgproc opencv_core opencv_features2d opencv_dnn

0 commit comments

Comments
 (0)