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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

No description provided.
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #668446 - Flags: review?(jones.chris.g)
Comment on attachment 668446 [details] [diff] [review] Patch (v1) r=me if it passes tryserver.
Attachment #668446 - Flags: review?(jones.chris.g) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
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
I don't suppose making it extern would suffice to fool the compiler?
(In reply to comment #6) > I don't suppose making it extern would suffice to fool the compiler? I don't know.
From a similar discussion on the clang-developers mailing list: > sizeof(((sockaddr_un*)0)->sun_path) Yeah...
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
(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
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Target Milestone: mozilla18 → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: