From db90a9e45dcad7a5069c4512f6ca676161b02d8f Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Wed, 24 Jul 2024 09:28:11 +0200 Subject: [PATCH] Mute warnings with msvc and mingw --- 3rdparty/apriltag/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/3rdparty/apriltag/CMakeLists.txt b/3rdparty/apriltag/CMakeLists.txt index 46bdd6db4b..442e7105ae 100644 --- a/3rdparty/apriltag/CMakeLists.txt +++ b/3rdparty/apriltag/CMakeLists.txt @@ -53,7 +53,15 @@ if(MSVC) vp_set_source_file_compile_flag(common/zmaxheap.c /wd4098 /wd4244) vp_set_source_file_compile_flag(common/workerpool.c /wd4018 /wd4244) vp_set_source_file_compile_flag(common/pam.c /wd4018) + vp_set_source_file_compile_flag(common/homography.c /wd4244) + vp_set_source_file_compile_flag(common/g2d.c /wd4244) + vp_set_source_file_compile_flag(common/image_u8.c /wd4244) + vp_set_source_file_compile_flag(common/image_u8x3.c /wd4244) vp_set_source_file_compile_flag(common/string_util.c /wd4018 /wd4267 /wd4996) + vp_set_source_file_compile_flag(common/pthreads_cross.c /wd4068 /wd4244) + vp_set_source_file_compile_flag(common/time_util.c /wd4244) + vp_set_source_file_compile_flag(apriltag.c /wd4244) + vp_set_source_file_compile_flag(apriltag_quad_thresh.c /wd4244) vp_set_source_file_compile_flag(tag16h5.c /wd4996) vp_set_source_file_compile_flag(tag25h7.c /wd4996) vp_set_source_file_compile_flag(tag25h9.c /wd4996) @@ -68,7 +76,7 @@ if(MSVC) endif() elseif(MINGW) foreach(f ${lib_srcs}) - vp_set_source_file_compile_flag(${f} -Wno-deprecated -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-float-equal -Wno-strict-overflow -Wno-type-limits -Wno-shift-negative-value -Wno-class-memaccess) + vp_set_source_file_compile_flag(${f} -Wno-deprecated -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-float-equal -Wno-strict-overflow -Wno-type-limits -Wno-shift-negative-value) endforeach() # disable optimization foreach(f ${tag_srcs})