From b880603a30682895a18e6fac0f7877778baf8544 Mon Sep 17 00:00:00 2001 From: "T. van der Zwan" Date: Wed, 21 Aug 2013 15:23:32 +0000 Subject: [PATCH] Added void-call to avoid warning in release mode --- libsrc/dispmanx-grabber/DispmanxFrameGrabber.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsrc/dispmanx-grabber/DispmanxFrameGrabber.cpp b/libsrc/dispmanx-grabber/DispmanxFrameGrabber.cpp index 4230a449..d497b876 100644 --- a/libsrc/dispmanx-grabber/DispmanxFrameGrabber.cpp +++ b/libsrc/dispmanx-grabber/DispmanxFrameGrabber.cpp @@ -19,6 +19,8 @@ DispmanxFrameGrabber::DispmanxFrameGrabber(const unsigned width, const unsigned // Obtain the display information DISPMANX_MODEINFO_T vc_info; int result = vc_dispmanx_display_get_info(_vc_display, &vc_info); + // Keep compiler happy in 'release' mode + (void)result; assert(result == 0); std::cout << "Display opened with resolution: " << vc_info.width << "x" << vc_info.height << std::endl;