Closed Bug 1118027 Opened 11 years ago Closed 11 years ago

fix some compile warnings in compose/src/nsMsgSend.cpp

Categories

(MailNews Core :: Composition, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 38.0

People

(Reporter: aceman, Assigned: aceman)

Details

Attachments

(1 file, 2 obsolete files)

On gcc 4.8: mailnews/compose/src/nsMsgSend.cpp: In member function 'virtual nsresult nsMsgComposeAndSend::GatherMimeAttachments()': mailnews/compose/src/nsMsgSend.cpp:430:8: warning: variable 'multipart_p' set but not used [-Wunused-but-set-variable] bool multipart_p = false; ^ mailnews/compose/src/nsMsgSend.cpp:431:8: warning: variable 'plaintext_is_mainbody_p' set but not used [-Wunused-but-set-variable] bool plaintext_is_mainbody_p = false; // only using text converted from HTML? ^ mailnews/compose/src/nsMsgSend.cpp:433:9: warning: variable 'buffer_tail' set but not used [-Wunused-but-set-variable] char *buffer_tail = 0; ^ mailnews/compose/src/nsMsgSend.cpp:435:8: warning: variable 'tonews' set but not used [-Wunused-but-set-variable] bool tonews; ^ mailnews/compose/src/nsMsgSend.cpp: In member function 'nsresult nsMsgComposeAndSend::HackAttachments(nsIArray*, nsIArray*)': mailnews/compose/src/nsMsgSend.cpp:2380:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < m_attachment_count; i++) { ^
Attached patch patch (obsolete) — Splinter Review
Attachment #8544249 - Flags: review?(Pidgeot18)
Comment on attachment 8544249 [details] [diff] [review] patch Review of attachment 8544249 [details] [diff] [review]: ----------------------------------------------------------------- Most of this patch doesn't apply anymore.
Attachment #8544249 - Flags: review?(Pidgeot18) → review-
Attached patch patch v2 (obsolete) — Splinter Review
Right, so only this remains.
Attachment #8544249 - Attachment is obsolete: true
Attachment #8547109 - Flags: review?(Pidgeot18)
Sorry but I had bug 1114328 ongoing for two weeks. This has just been merged but maybe your last change is still relevant (-Wsign-compare).
Comment on attachment 8547109 [details] [diff] [review] patch v2 Review of attachment 8547109 [details] [diff] [review]: ----------------------------------------------------------------- This patch appears to have been superseded.
Attachment #8547109 - Flags: review?(Pidgeot18) → review-
Attached patch patch v2.1Splinter Review
Yeah, suddenly everybody wants into this file ;)
Attachment #8547109 - Attachment is obsolete: true
Attachment #8549029 - Flags: review?(Pidgeot18)
Attachment #8549029 - Flags: review?(Pidgeot18) → review+
Thanks.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 38.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: