mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fixed/disabled warnings produced by GCC 7
This commit is contained in:
@@ -609,7 +609,7 @@ bool CvCapture_OpenNI2::setDepthGeneratorProperty( int propIdx, double propValue
|
||||
if ( streams[CV_COLOR_STREAM].isValid() )
|
||||
{
|
||||
openni::ImageRegistrationMode mode = propValue != 0.0 ? openni::IMAGE_REGISTRATION_DEPTH_TO_COLOR : openni::IMAGE_REGISTRATION_OFF;
|
||||
if( !device.getImageRegistrationMode() == mode )
|
||||
if( device.getImageRegistrationMode() != mode )
|
||||
{
|
||||
if (device.isImageRegistrationModeSupported(mode))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user