[Webkit-unassigned] [Bug 65414] DequeIterator lacks default constructor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 8 03:44:19 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=65414





--- Comment #10 from Balazs Kelemen <kbalazs at webkit.org>  2011-09-08 03:44:19 PST ---
(In reply to comment #9)
> (From update of attachment 106405 [details])
> Attachment 106405 [details] did not pass mac-ews (mac):
> Output: http://queues.webkit.org/results/9615060

This is the build error:
cc1plus: warnings being treated as errors
/Users/balazs/WebKitGit/WebKitBuild/Release/JavaScriptCore.framework/PrivateHeaders/MessageQueue.h: In member function 'void* WebCore::DatabaseThread::databaseThread()':
/Users/balazs/WebKitGit/WebKitBuild/Release/JavaScriptCore.framework/PrivateHeaders/MessageQueue.h:135: warning: 'found.WTF::DequeConstIterator<WebCore::DatabaseTask*, 0ul>::<anonymous>.WTF::DequeIteratorBase<WebCore::DatabaseTask*, 0ul>::m_index' may be used uninitialized in this function
/Users/balazs/WebKitGit/WebKitBuild/Release/JavaScriptCore.framework/PrivateHeaders/MessageQueue.h:135: note: 'found.WTF::DequeConstIterator<WebCore::DatabaseTask*, 0ul>::<anonymous>.WTF::DequeIteratorBase<WebCore::DatabaseTask*, 0ul>::m_index' was declared here

Honestly I don't get it. It is coming from here:

DequeConstIterator<DataType*> found;
while (!m_killed && !timedOut && (found = m_queue.findIf(predicate)) == m_queue.end())
    timedOut = !m_condition.timedWait(m_mutex, absoluteTime);

found.m_index is uninitialized first bug the iterator is assigned before used and operator= sets the value. Maybe a compiler error?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list