From 978661c0aa2cb39912163c445e14169fa5a5f968 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Jun 2019 11:55:01 +0200 Subject: tracker/easy: fix -Wall -Wextra -Wpedantic Notice to: @SLion --- tracker-easy/CMakeLists.txt | 6 ++++++ tracker-easy/tracker-easy.cpp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'tracker-easy') diff --git a/tracker-easy/CMakeLists.txt b/tracker-easy/CMakeLists.txt index 2bc773d7..670b9003 100644 --- a/tracker-easy/CMakeLists.txt +++ b/tracker-easy/CMakeLists.txt @@ -12,6 +12,12 @@ if(OpenCV_FOUND) otr_install_lib("opencv_${k}" "${opentrack-hier-pfx}") endforeach() + if(CMAKE_COMPILER_IS_GNUCXX) + add_compile_options(-Wno-sign-compare) + elseif(MSVC) + add_compile_definitions(-wd4018) + endif() + otr_module(tracker-easy) target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) target_link_libraries(${self} opencv_core opencv_imgproc opencv_calib3d opencv_video opencv_highgui opentrack-cv opentrack-video) diff --git a/tracker-easy/tracker-easy.cpp b/tracker-easy/tracker-easy.cpp index 23e68397..3f5c449b 100644 --- a/tracker-easy/tracker-easy.cpp +++ b/tracker-easy/tracker-easy.cpp @@ -670,7 +670,8 @@ namespace EasyTracker void Tracker::set_fov(int value) { - QMutexLocker l(&camera_mtx); + (void)value; + //QMutexLocker l(&camera_mtx); } -- cgit v1.2.3