WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
106442
IndexedDB: Remove ASSERTs that can't assert but result in compiler warnings
https://bugs.webkit.org/show_bug.cgi?id=106442
Summary
IndexedDB: Remove ASSERTs that can't assert but result in compiler warnings
Jussi Kukkonen (jku)
Reported
2013-01-09 04:32:32 PST
IDBLevelDBCoding::m_metaDataType has been changed to unsigned so ASSERT(m_metaDataType >= 0) is not useful: it does create build problems at least with EFL. Attaching patch.
Attachments
Patch
(1.85 KB, patch)
2013-01-09 04:40 PST
,
Jussi Kukkonen (jku)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jussi Kukkonen (jku)
Comment 1
2013-01-09 04:40:39 PST
Created
attachment 181896
[details]
Patch
Chris Dumez
Comment 2
2013-01-09 04:45:09 PST
How about this?
> ObjectStoreMetaDataKey::ObjectStoreMetaDataKey() > : m_objectStoreId(-1) > , m_metaDataType(-1) > { > }
Kentaro Hara
Comment 3
2013-01-09 04:57:28 PST
Comment on
attachment 181896
[details]
Patch OK
Jussi Kukkonen (jku)
Comment 4
2013-01-09 05:19:03 PST
(In reply to
comment #2
)
> How about this? > > > ObjectStoreMetaDataKey::ObjectStoreMetaDataKey() > > : m_objectStoreId(-1) > > , m_metaDataType(-1) > > { > > }
Good that you mentioned, I was planning to but forgot. It's ugly but should work, assuming that presents a metadatatype that does not exist: see "enum MetaDataType" in the header for the 'good' values of metadatatype. We could add a unsetObjectStoreMetaDataType but that shouldn't be part of this patch I guess.
Kentaro Hara
Comment 5
2013-01-09 06:59:06 PST
Comment on
attachment 181896
[details]
Patch Please fix the issue Christophe pointed out in a follow-up patch.
WebKit Review Bot
Comment 6
2013-01-09 07:39:36 PST
Comment on
attachment 181896
[details]
Patch Clearing flags on attachment: 181896 Committed
r139193
: <
http://trac.webkit.org/changeset/139193
>
WebKit Review Bot
Comment 7
2013-01-09 07:39:40 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug