Closed Bug 579842 Opened 15 years ago Closed 15 years ago

warning: comparison between signed and unsigned integer expressions in nsMsgDBView

Categories

(MailNews Core :: Database, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 file, 1 obsolete file)

mailnews/base/src/nsMsgDBView.cpp: In member function ‘nsresult nsMsgDBView::GetSelectedIndices(nsMsgViewIndexArray&)’: 1184: warning: comparison between signed and unsigned integer expressions In member function ‘virtual nsresult nsMsgDBView::ApplyCommandToIndices(nsMsgViewCommandTypeValue, nsMsgViewIndex*, PRInt32)’: 2787: warning: comparison between signed and unsigned integer expressions 2858: warning: unused variable ‘isRead’ In member function ‘virtual nsresult nsMsgDBView::DeleteMessages(nsIMsgWindow*, nsMsgViewIndex*, PRInt32, PRBool)’: 2960: warning: comparison between signed and unsigned integer expressions In member function ‘nsresult nsMsgDBView::SetMsgHdrJunkStatus(nsIJunkMailPlugin*, nsIMsgDBHdr*, nsMsgJunkStatus)’: 3206: warning: enumeral mismatch in conditional expression: ‘nsIJunkMailPlugin::<anonymous enum>’ vs ‘nsIJunkMailPlugin::<anonymous enum>’ In member function ‘nsresult nsMsgDBView::PerformActionsOnJunkMsgs(PRBool)’: 3341: warning: comparison between signed and unsigned integer expressions In member function ‘nsMsgViewIndex nsMsgDBView::GetIndexForThread(nsIMsgDBHdr*)’: 4941: warning: comparison between signed and unsigned integer expressions In member function ‘nsMsgViewIndex nsMsgDBView::GetThreadRootIndex(nsIMsgDBHdr*)’: 5470: warning: comparison between signed and unsigned integer expressions In member function ‘virtual nsresult nsMsgDBView::GetMsgToSelectAfterDelete(nsMsgViewIndex*)’: 6797: warning: comparison between signed and unsigned integer expressions In member function ‘virtual nsresult nsMsgDBView::nsMsgViewHdrEnumerator::GetNext(nsISupports**)’: 7364: warning: comparison between signed and unsigned integer expressions In member function ‘virtual nsresult nsMsgDBView::nsMsgViewHdrEnumerator::HasMoreElements(PRBool*)’: 7382: warning: comparison between signed and unsigned integer expressions 2858/isRead is actually an unused variable, but call it collateral damage :)
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #458275 - Flags: review?(bienvenu)
Comment on attachment 458275 [details] [diff] [review] patch - while (lowIndex < GetSize() && m_levels[lowIndex]) + while (lowIndex < GetSize() && + m_levels[lowIndex]) lowIndex++; I don't see any reason to make these lines any shorter; they're already less than 80 chars. I need to look more closely at some of the other changes...
I'll land this, once I check that it doesn't regress any of the unit tests...
Attachment #458275 - Attachment is obsolete: true
Attachment #480295 - Flags: review+
Attachment #458275 - Flags: review?(bienvenu)
fix checked in, thx for the patch.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: