Projects
Extra
chromium-ffmpeg-extra
chromium-94-sql-no-assert.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-94-sql-no-assert.patch of Package chromium-ffmpeg-extra (Revision 23)
Currently displaying revision
23
,
Show latest
--- a/sql/recover_module/cursor.h +++ b/sql/recover_module/cursor.h @@ -62,10 +62,12 @@ // |sqlite_cursor| must have been returned by VirtualTable::SqliteCursor(). static inline VirtualCursor* FromSqliteCursor( sqlite3_vtab_cursor* sqlite_cursor) { +#ifndef NDEBUG static_assert(std::is_standard_layout<VirtualCursor>::value, "needed for the reinterpret_cast below"); static_assert(offsetof(VirtualCursor, sqlite_cursor_) == 0, "sqlite_cursor_ must be the first member of the class"); +#endif VirtualCursor* result = reinterpret_cast<VirtualCursor*>(sqlite_cursor); DCHECK_EQ(sqlite_cursor, &result->sqlite_cursor_); return result;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.