Closed Bug 291436 Opened 19 years ago Closed 19 years ago

r:\mozilla\layout\generic\nsBlockFrame.h(628) : warning C4099: 'nsBlockFrame::nsAutoOOFFrameList' : type name first seen using 'struct' now seen using 'class'

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

Attachments

(1 obsolete file)

r:\mozilla\layout\generic\nsBlockFrame.h(628) : warning C4099:
'nsBlockFrame::nsAutoOOFFrameList' : type name first seen using 'struct' now
seen using 'class'
        r:\mozilla\layout\generic\nsBlockFrame.h(613) : see declaration of
'nsBlockFrame::nsAutoOOFFrameList'
Attached patch match decl (obsolete) — Splinter Review
Assignee: roc → timeless
Status: NEW → ASSIGNED
Attachment #181531 - Flags: superreview?(roc)
Attachment #181531 - Flags: review?(roc)
Attachment #181531 - Flags: superreview?(roc)
Attachment #181531 - Flags: superreview+
Attachment #181531 - Flags: review?(roc)
Attachment #181531 - Flags: review+
Attachment #181531 - Flags: approval1.8b3?
Comment on attachment 181531 [details] [diff] [review]
match decl

a=shaver
Attachment #181531 - Flags: approval1.8b3? → approval1.8b3+
Comment on attachment 181531 [details] [diff] [review]
match decl

mozilla/layout/generic/nsBlockFrame.h	3.205
Attachment #181531 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
The C++ standard explicitly says this code is correct (7.1.5.3/3), but believe
me, you want to change the build options to treat this warning as an error just
to get around Microsoft's stupidity. Their compiler mangles structs and classes
differently and this can generate a very cryptic link error under certain
conditions (you get no line numbers and when you demangle the mangled function,
one of the parameters is a struct instead of a class (or vice versa) and it's
very, very hard to notice something that subtle). When it happened to me, it
took nearly 4 hours to figure out what was wrong and my code base is nowhere
near the size of mozilla's.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: