Merge pull request #6414 from mshabunin:fix-macosx-warnings

pull/6422/head
Maksim Shabunin 9 years ago
commit 809c159e11
  1. 2
      3rdparty/zlib/CMakeLists.txt
  2. 7
      modules/ts/include/opencv2/ts/ts_perf.hpp
  3. 2
      samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp

@ -82,7 +82,7 @@ if(UNIX)
endif() endif()
endif() endif()
ocv_warnings_disable(CMAKE_C_FLAGS -Wshorten-64-to-32 -Wattributes -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations) ocv_warnings_disable(CMAKE_C_FLAGS -Wshorten-64-to-32 -Wattributes -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshift-negative-value)
set_target_properties(${ZLIB_LIBRARY} PROPERTIES set_target_properties(${ZLIB_LIBRARY} PROPERTIES
OUTPUT_NAME ${ZLIB_LIBRARY} OUTPUT_NAME ${ZLIB_LIBRARY}

@ -369,7 +369,12 @@ public:
static enum PERF_STRATEGY getCurrentModulePerformanceStrategy(); static enum PERF_STRATEGY getCurrentModulePerformanceStrategy();
static enum PERF_STRATEGY setModulePerformanceStrategy(enum PERF_STRATEGY strategy); static enum PERF_STRATEGY setModulePerformanceStrategy(enum PERF_STRATEGY strategy);
class PerfSkipTestException: public cv::Exception {}; class PerfSkipTestException: public cv::Exception
{
int dummy; // workaround for MacOSX Xcode 7.3 bug (don't make class "empty")
public:
PerfSkipTestException() : dummy(0) {}
};
protected: protected:
virtual void PerfTestBody() = 0; virtual void PerfTestBody() = 0;

@ -57,7 +57,7 @@ void Tracker::setFirstFrame(const Mat frame, vector<Point2f> bb, string title, S
drawBoundingBox(first_frame, bb); drawBoundingBox(first_frame, bb);
putText(first_frame, title, Point(0, 60), FONT_HERSHEY_PLAIN, 5, Scalar::all(0), 4); putText(first_frame, title, Point(0, 60), FONT_HERSHEY_PLAIN, 5, Scalar::all(0), 4);
object_bb = bb; object_bb = bb;
delete ptMask; delete[] ptMask;
} }
Mat Tracker::process(const Mat frame, Stats& stats) Mat Tracker::process(const Mat frame, Stats& stats)

Loading…
Cancel
Save