Closed Bug 579783 Opened 16 years ago Closed 15 years ago

warnings in nsBayesianFilter

Categories

(MailNews Core :: Filters, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.3a2

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 file, 2 obsolete files)

mailnews/extensions/bayesian-spam-filter/src/nsBayesianFilter.h: In constructor ‘Tokenizer::Tokenizer()’: 179: warning: ‘Tokenizer::mCustomHeaderTokenization’ will be initialized after 170: warning: ‘nsCString Tokenizer::mBodyDelimiters’ mailnews/extensions/bayesian-spam-filter/src/nsBayesianFilter.cpp: 323: warning: when initialized here In member function ‘void Tokenizer::addTokenForHeader(const char*, nsACString_internal&, PRBool, const char*)’: 522: warning: comparison between signed and unsigned integer expressions In member function ‘void CorpusStore::writeTrainingData(PRInt32)’: 2482: warning: comparison between signed and unsigned integer expressions 2527: warning: suggest parentheses around assignment used as truth value 2535: warning: suggest parentheses around assignment used as truth value 2537: warning: suggest parentheses around assignment used as truth value 2539: warning: suggest parentheses around assignment used as truth value In member function ‘nsresult CorpusStore::UpdateData(nsILocalFile*, PRBool, PRUint32, PRUint32*, PRUint32*)’: 2800: warning: suggest parentheses around assignment used as truth value 2803: warning: suggest parentheses around assignment used as truth value 2810: warning: suggest parentheses around assignment used as truth value 2830: warning: suggest parentheses around assignment used as truth value
Attached patch patch (obsolete) — — Splinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #458214 - Flags: review?(bienvenu)
Attachment #458214 - Flags: review?(bienvenu) → review?(kent)
With this patch, with my compiler, I get rid of the warnings at line 522 and 2482, but pick up a new one at line 680. Is there any reason that you can't fix that one while you're at it?
Attached patch zap them all (obsolete) — — Splinter Review
Attachment #458214 - Attachment is obsolete: true
Attachment #496452 - Flags: review?(kent)
Attachment #458214 - Flags: review?(kent)
Attached patch zap them all — — Splinter Review
Attachment #496452 - Attachment is obsolete: true
Attachment #496456 - Flags: review?(kent)
Attachment #496452 - Flags: review?(kent)
Comment on attachment 496456 [details] [diff] [review] zap them all Runs fine in Windows now with no warnings.
Attachment #496456 - Flags: review?(kent) → review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: