Added void-call to avoid warning in release mode

This commit is contained in:
T. van der Zwan 2013-08-21 15:23:32 +00:00
parent f262a9eb11
commit b880603a30

View File

@ -19,6 +19,8 @@ DispmanxFrameGrabber::DispmanxFrameGrabber(const unsigned width, const unsigned
// Obtain the display information // Obtain the display information
DISPMANX_MODEINFO_T vc_info; DISPMANX_MODEINFO_T vc_info;
int result = vc_dispmanx_display_get_info(_vc_display, &vc_info); int result = vc_dispmanx_display_get_info(_vc_display, &vc_info);
// Keep compiler happy in 'release' mode
(void)result;
assert(result == 0); assert(result == 0);
std::cout << "Display opened with resolution: " << vc_info.width << "x" << vc_info.height << std::endl; std::cout << "Display opened with resolution: " << vc_info.width << "x" << vc_info.height << std::endl;