mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 19:08:11 +00:00
[client] all: use DEBUG_UNREACHABLE instead of assert
Due to the way assert is defined in standard C, compilers in release mode will not treat it as unreachable. This explains a lot about those pesky uninitialized variable bugs, actually.
This commit is contained in:
@@ -330,7 +330,7 @@ struct CursorState egl_cursorRender(EGL_Cursor * cursor,
|
||||
break;
|
||||
|
||||
default:
|
||||
assert(!"unreachable");
|
||||
DEBUG_UNREACHABLE();
|
||||
}
|
||||
|
||||
state.rect.x = max(0, state.rect.x);
|
||||
|
Reference in New Issue
Block a user