Closed
Bug 468781
Opened 16 years ago
Closed 16 years ago
gcc complaing about comparing char* with string literal
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: wolfiR, Assigned: wolfiR)
References
(Blocks 1 open bug)
Details
(Keywords: fixed1.9.1)
Attachments
(1 file, 1 obsolete file)
1.08 KB,
patch
|
roc
:
review+
roc
:
superreview+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/content/events/src/nsDOMDataTransfer.cpp#721 706 const char* formats[] = { kFileMime, kHTMLMime, kURLMime, kURLDataMime, kUnicodeMime }; 721 if (formats[f] == kUnicodeMime) { 722 SetDataWithPrincipal(NS_LITERAL_STRING("text/plain"), nsnull, c, sysPrincipal); 723 } 724 else { 725 if (formats[f] == kURLDataMime) gcc doesn't like that and openSUSE's public buildsystem breaks the complete build because that type of warning is fatal there.
Assignee | ||
Updated•16 years ago
|
Blocks: buildwarning
Updated•16 years ago
|
Attachment #352278 -
Flags: review?(enndeakin)
Updated•16 years ago
|
Attachment #352278 -
Flags: review?(enndeakin) → review+
Updated•16 years ago
|
Attachment #352278 -
Flags: superreview?(roc)
Attachment #352278 -
Flags: approval1.9.1?
Ouch, that is a bad bug. However, this is also a bad bug: + if (strcmp(formats[f], kURLDataMime == 0)) The == 0 should not be inside the second parameter...
Assignee | ||
Comment 2•16 years ago
|
||
oO, my original patch is correct, that's what happens if you don't do cut'n'paste. Sorry.
Attachment #352278 -
Attachment is obsolete: true
Attachment #352496 -
Flags: superreview?(roc)
Attachment #352496 -
Flags: review?(roc)
Attachment #352278 -
Flags: superreview?(roc)
Attachment #352278 -
Flags: approval1.9.1?
Attachment #352496 -
Flags: superreview?(roc)
Attachment #352496 -
Flags: superreview+
Attachment #352496 -
Flags: review?(roc)
Attachment #352496 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Attachment #352496 -
Flags: approval1.9.1?
Assignee | ||
Comment 3•16 years ago
|
||
Pushed to mozilla-central. Waiting for 1.9.1 approval
Assignee: nobody → mozilla
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 4•16 years ago
|
||
Comment on attachment 352496 [details] [diff] [review] fixed patch a191=beltzner
Attachment #352496 -
Flags: approval1.9.1? → approval1.9.1+
Assignee | ||
Comment 5•16 years ago
|
||
Pushed to 1.9.1
Assignee | ||
Updated•16 years ago
|
Keywords: fixed1.9.1
You need to log in
before you can comment on or make changes to this bug.
Description
•