Skip to content

Commit

Permalink
Mute warnings with msvc and mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Jul 24, 2024
1 parent 4ecdfc1 commit db90a9e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 3rdparty/apriltag/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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})
Expand Down

0 comments on commit db90a9e

Please sign in to comment.