From f273e54be30c2b37f098444cada269682e00370d Mon Sep 17 00:00:00 2001 From: Marina Kolpakova Date: Wed, 13 Jun 2012 13:21:51 +0000 Subject: [PATCH] fixed part of shadow warnings --- modules/highgui/src/cap_v4l.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/highgui/src/cap_v4l.cpp b/modules/highgui/src/cap_v4l.cpp index e76cce9..b970fa0 100644 --- a/modules/highgui/src/cap_v4l.cpp +++ b/modules/highgui/src/cap_v4l.cpp @@ -2769,9 +2769,9 @@ static void icvCloseCAM_V4L( CvCaptureCAM_V4L* capture ){ perror ("Unable to stop the stream."); } - for (unsigned int n_buffers = 0; n_buffers < capture->req.count; ++n_buffers) + for (unsigned int n_buffers_ = 0; n_buffers_ < capture->req.count; ++n_buffers_) { - if (-1 == munmap (capture->buffers[n_buffers].start, capture->buffers[n_buffers].length)) { + if (-1 == munmap (capture->buffers[n_buffers_].start, capture->buffers[n_buffers_].length)) { perror ("munmap"); } } -- 2.7.4