Skip to content

Commit

Permalink
Fix wasning in OpenCV area (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz authored Jan 13, 2019
1 parent 1aeadbb commit a4c0ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libOpenImageIO/imagebufalgo_opencv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ ImageBufAlgo::from_OpenCV(const cv::Mat& mat, TypeDesc convert, ROI roi,

// OpenCV uses BGR ordering
if (spec.nchannels >= 3) {
bool ok = true;
OIIO_MAYBE_UNUSED bool ok = true;
OIIO_DISPATCH_TYPES(ok, "from_OpenCV R/B swap", RBswap, dstformat, dst,
roi, nthreads);
}
Expand Down

0 comments on commit a4c0ca4

Please sign in to comment.