Closed Bug 139726 Opened 23 years ago Closed 23 years ago

Duplicate variable definition broken compilers other than gcc

Categories

(Core :: XUL, defect)

Other
Solaris
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: jay.yan, Assigned: jay.yan)

References

()

Details

Attachments

(1 file)

976 bytes, patch
zhayupeng
: review+
jag+mozilla
: superreview+
Details | Diff | Splinter Review
Please see this two function prototypes: (line 71 and 74) 70 void InitButtonEvent(nsMouseEvent &aEvent, PRUint32 aMsg, 71 GdkEventButton *aEvent); 72 void InitMouseScrollEvent(nsMouseScrollEvent &aEvent, 73 GdkEventScroll *aGdkEvent, PRUint32 aMsg); 74 void InitKeyEvent(nsKeyEvent &aEvent, GdkEventKey *aEvent, PRUint32 aMsg); "aEvent" is defined twice. I am using CC on Solaris, the building process stops becasue of it. other compilers can not compile it neither, I think change the second "aEvent" into "aGdkEvent" can fix it. I will attach the patch.
it is a gtk2 port bug. let me own it.
Assignee: jaggernaut → jay.yan
Blocks: gtk2
Attached patch patchSplinter Review
change the the name of the duplicate variable. CC on solaris feel more comfortable now.
OS: Windows 2000 → Solaris
Comment on attachment 80760 [details] [diff] [review] patch r=pete.zha
Attachment #80760 - Flags: review+
Chris: can you sr= it? Thanks Jay
Status: NEW → ASSIGNED
Comment on attachment 80760 [details] [diff] [review] patch sr=jag
Attachment #80760 - Flags: superreview+
checked in by Pete, thanks, Pete
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy fixed 1.10 <pete.zha@sun.com> 27 Apr 2002 02:41
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: