summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-06-26 11:55:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-06-26 11:55:01 +0200
commit978661c0aa2cb39912163c445e14169fa5a5f968 (patch)
tree1f36e1adee27d850a9795769ed7f4090b12a2f9c /tracker-easy
parentde6195fe18d8d4bfaa54690215e2adba5449ba62 (diff)
tracker/easy: fix -Wall -Wextra -Wpedantic
Notice to: @SLion
Diffstat (limited to 'tracker-easy')
-rw-r--r--tracker-easy/CMakeLists.txt6
-rw-r--r--tracker-easy/tracker-easy.cpp3
2 files changed, 8 insertions, 1 deletions
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);
}