Closed
Bug 798354
Opened 13 years ago
Closed 13 years ago
Global variable sizecheck in ipc_channel_posix.cc is unused
Categories
(Core :: IPC, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file)
727 bytes,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Comment on attachment 668446 [details] [diff] [review]
Patch (v1)
r=me if it passes tryserver.
Attachment #668446 -
Flags: review?(jones.chris.g) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Assignee | ||
Comment 5•13 years ago
|
||
Well, turns out that C++98 does not allow sizeof(class::member), but C++11 does. Waldo tells me that it breaks builds using clang trunk. Not sure what we can do besides backing out, so I did that:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7bf353b1ae55
Resolution: FIXED → WONTFIX
Comment 6•13 years ago
|
||
I don't suppose making it extern would suffice to fool the compiler?
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to comment #6)
> I don't suppose making it extern would suffice to fool the compiler?
I don't know.
Comment 8•13 years ago
|
||
From a similar discussion on the clang-developers mailing list:
> sizeof(((sockaddr_un*)0)->sun_path)
Yeah...
Assignee | ||
Comment 9•13 years ago
|
||
Neat trick! Used that in https://hg.mozilla.org/integration/mozilla-inbound/rev/0761bc637081.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 10•13 years ago
|
||
(In reply to Ehsan Akhgari [:ehsan] from comment #5)
> Well, turns out that C++98 does not allow sizeof(class::member), but C++11
> does. Waldo tells me that it breaks builds using clang trunk. Not sure
> what we can do besides backing out, so I did that:
>
> https://hg.mozilla.org/integration/mozilla-inbound/rev/7bf353b1ae55
https://hg.mozilla.org/mozilla-central/rev/7bf353b1ae55
Comment 11•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Target Milestone: mozilla18 → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•