vbox6: fix warnings on disabled assertions

This commit is contained in:
Christian Helmuth 2022-01-20 16:28:29 +01:00 committed by Norman Feske
parent 299a35d943
commit 41a579e978
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ class Genodefb :
_display(display)
{
int rc = RTCritSectInit(&_fb_lock);
Assert(rc == VINF_SUCCESS);
Assert(rc == VINF_SUCCESS); (void)rc;
}
virtual ~Genodefb() { }

View File

@ -414,7 +414,7 @@ void Main::_handle_fb_mode()
_gui_connections.for_each([&] (Gui::Connection &gui) {
IFramebuffer *pFramebuffer = NULL;
HRESULT rc = _idisplay->QueryFramebuffer(0, &pFramebuffer);
Assert(SUCCEEDED(rc) && pFramebuffer);
Assert(SUCCEEDED(rc) && pFramebuffer); (void)rc;
Genodefb *fb = dynamic_cast<Genodefb *>(pFramebuffer);