1
0
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:
Maksim Shabunin
2017-11-29 16:51:50 +03:00
parent cc2ee923e4
commit 7eb1065944
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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))
{