a/tracking: Use #pragma message instead of #warning

Avoids warning
../src/xrt/auxiliary/tracking/t_tracker_slam.cpp:66:2: warning: #warning is a GCC extension
This commit is contained in:
Christoph Haag 2021-12-14 13:51:16 +01:00
parent 1203cf38f0
commit 8bbaf2a05b

View file

@ -63,7 +63,7 @@ using cv::UMatUsageFlags;
#define USING_OPENCV_3_3_1 (CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 3 && CV_VERSION_REVISION == 1)
#if defined(XRT_HAVE_KIMERA_SLAM) && !USING_OPENCV_3_3_1
#warning "Kimera-VIO uses OpenCV 3.3.1, use that to prevent conflicts"
#pragma message "Kimera-VIO uses OpenCV 3.3.1, use that to prevent conflicts"
#endif
//! @todo These defs should make OpenCV 4 work but it wasn't tested against a