Closed
Bug 579783
Opened 16 years ago
Closed 15 years ago
warnings in nsBayesianFilter
Categories
(MailNews Core :: Filters, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.3a2
People
(Reporter: timeless, Assigned: timeless)
Details
Attachments
(1 file, 2 obsolete files)
|
6.58 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
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
Updated•16 years ago
|
Attachment #458214 -
Flags: review?(bienvenu) → review?(kent)
Comment 2•16 years ago
|
||
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?
Attachment #458214 -
Attachment is obsolete: true
Attachment #496452 -
Flags: review?(kent)
Attachment #458214 -
Flags: review?(kent)
Attachment #496452 -
Attachment is obsolete: true
Attachment #496456 -
Flags: review?(kent)
Attachment #496452 -
Flags: review?(kent)
Comment 5•15 years ago
|
||
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
Comment 6•15 years ago
|
||
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.
Description
•