From fa9d092c435c109b8460674f36c0a3fc4b80b7f0 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Thu, 3 Oct 2013 12:04:57 +0400 Subject: [PATCH] Fix a -Wparentheses-equality Clang warning in cap_libv4l.cpp. --- modules/highgui/src/cap_libv4l.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/highgui/src/cap_libv4l.cpp b/modules/highgui/src/cap_libv4l.cpp index 3fd6dd59ad..91047de1f1 100644 --- a/modules/highgui/src/cap_libv4l.cpp +++ b/modules/highgui/src/cap_libv4l.cpp @@ -856,8 +856,7 @@ static int _capture_V4L (CvCaptureCAM_V4L *capture, char *deviceName) detect_v4l = try_init_v4l(capture, deviceName); - if ((detect_v4l == -1) - ) + if (detect_v4l == -1) { fprintf (stderr, "HIGHGUI ERROR: V4L" ": device %s: Unable to open for READ ONLY\n", deviceName); @@ -865,8 +864,7 @@ static int _capture_V4L (CvCaptureCAM_V4L *capture, char *deviceName) return -1; } - if ((detect_v4l <= 0) - ) + if (detect_v4l <= 0) { fprintf (stderr, "HIGHGUI ERROR: V4L" ": device %s: Unable to query number of channels\n", deviceName);