Closed
Bug 595756
Opened 14 years ago
Closed 14 years ago
Fix build warning - 'argument' : conversion from 'PRUint16' to 'PRUint8', possible loss of data
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b7
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
People
(Reporter: sgautherie, Assigned: sgautherie)
References
Details
Attachments
(1 file)
(deleted),
patch
|
longsonr
:
review+
roc
:
approval2.0+
|
Details | Diff | Splinter Review |
(I hadn't tried to build locally for a long time...)
After applying bug 595708 comment 3 workaround, I get
{
.../DOMSVGLength.cpp(58) : error C2248: 'mozilla::DOMSVGLengthList::mItems' : cannot access private member declared in class 'mozilla::DOMSVGLengthList'
...\DOMSVGLengthList.h(150) : see declaration of 'mozilla::DOMSVGLengthList::mItems'
...\DOMSVGLengthList.h(70) : see declaration of 'mozilla::DOMSVGLengthList'
.../DOMSVGLength.cpp(276) : warning C4244: 'argument' : conversion from 'PRUint16' to 'PRUint8', possible loss of data
}
http://mxr.mozilla.org/mozilla-central/source/content/svg/content/src/DOMSVGLength.cpp
56 // We may not belong to a list, so we must null check tmp->mList.
57 if (tmp->mList) {
58 tmp->mList->mItems[tmp->mListIndex] = nsnull;
Assignee | ||
Updated•14 years ago
|
Assignee | ||
Comment 1•14 years ago
|
||
Iiuc, it looks like VC++ 2005 has difficulty w.r.t.
{
class DOMSVGLengthList : public nsIDOMSVGLengthList
{
friend class DOMSVGLength;
}
Keywords: helpwanted
Assignee | ||
Comment 2•14 years ago
|
||
This is like
285 mUnit = PRUint8(aUnit);
I have no idea whether the API is right, but at least this patch is consistent with current code.
Attachment #477529 -
Flags: review?(longsonr)
Updated•14 years ago
|
Attachment #477529 -
Flags: review?(longsonr) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
"approval2.0=?":
Trivial compile warning fix, zero risk.
Attachment #477529 -
Flags: approval2.0?
Assignee: nobody → sgautherie.bz
Assignee | ||
Comment 4•14 years ago
|
||
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
http://hg.mozilla.org/mozilla-central/rev/2d184fdf2776
Attachment #477529 -
Attachment description: (Av1) Add an unrelated PRUint8() cast → (Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 4]
Attachment #477529 -
Flags: approval2.0?
Assignee | ||
Updated•14 years ago
|
Assignee: sgautherie.bz → nobody
Comment 5•14 years ago
|
||
Looks like this never got approval, which current tree rules say it's supposed to have before landing.
(having said that, it's trivial & probably merits approval, & you might be able to get retroactive approval by pinging a release driver)
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5)
> Looks like this never got approval, which current tree rules say it's supposed
> to have before landing.
Not my fault:
the tree was green-'OPEN' when I checked in, (just as it is "still" green-'APPROVAL REQUIRED' instead of usual yellow).
Moreover, as you can see, I didn't (have to) use 'a=*'.
> (having said that, it's trivial & probably merits approval, & you might be able
> to get retroactive approval by pinging a release driver)
Feel free to just set the flag(s) again:
I have tried to ping for approval both on bugzilla and on irc before, without success...
Comment 7•14 years ago
|
||
I backed out all the changesets in your push because they weren't approved.
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #5)
> Looks like this never got approval, which current tree rules say it's supposed
> to have before landing.
Oh! I just checked
https://wiki.mozilla.org/Tree_Rules#mozilla-central_-_Trunk_.28Firefox_4.0.2C_Gecko_2.0_work.29
which indeed reads
"When the tree is marked OPEN, you are free to land approved patches after checking with the current sheriff."
Yet, this is quite unexpected/confusing:
'OPEN' (on the waterfall) usually means "no restriction";
"approval needed" usually means there is a checking hook and the waterfall reads 'APPROVAL REQUIRED' :-/
Assignee | ||
Comment 9•14 years ago
|
||
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
(In reply to comment #7)
> I backed out all the changesets in your push because they weren't approved.
See discussion in previous comments :-<
Attachment #477529 -
Flags: approval2.0?
Comment 10•14 years ago
|
||
(In reply to comment #8)
> Yet, this is quite unexpected/confusing:
> 'OPEN' (on the waterfall) usually means "no restriction";
> "approval needed" usually means there is a checking hook and the waterfall
> reads 'APPROVAL REQUIRED' :-/
(Yup -- it was a mistake that the waterfall said "open", and it's now been updated)
Assignee | ||
Comment 11•14 years ago
|
||
"blocking2.0=?":
Can't build on tier-1 platform.
blocking2.0: --- → ?
blocking2.0: ? → final+
Comment 12•14 years ago
|
||
I use VC 2005 Express and everything builds fine for me. The patch is just a cosmetic change and should not affect whether things compile or not.
Assignee | ||
Comment 13•14 years ago
|
||
(In reply to comment #12)
> I use VC 2005 Express and everything builds fine for me.
Ah. Could it be related to PSDK v2003R2 then?
> The patch is just a
> cosmetic change and should not affect whether things compile or not.
It doesn't and is labelled "unrelated".
Comment 14•14 years ago
|
||
I have Microsoft Platform SDK for Windows Server 2003 R2 installed.
Assignee | ||
Comment 15•14 years ago
|
||
(In reply to comment #12)
> I use VC 2005 Express
Ah, do you have SP1? (I don't.)
NB: I'm now wondering whether non-SP1 may be starting to have difficulties with our more recent code. I'll try to upgrade...
(In reply to comment #14)
> I have Microsoft Platform SDK for Windows Server 2003 R2 installed.
Are you building with it only? (as I do on my Win2K)
Depends on: 595708
Comment 16•14 years ago
|
||
Microsoft Visual Studio 2005
Version 8.0.50727.867 (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727 SP2
Installed Edition: VC Express
Microsoft Visual C++ 2005 76542-000-0000011-00125
Microsoft Visual C++ 2005
Assignee | ||
Comment 17•14 years ago
|
||
(In reply to comment #16)
> Microsoft Visual Studio 2005
> Version 8.0.50727.867 (vsvista.050727-8600)
I'm not familiar with this: would it be the one included in Vista SDK?
I was referring to standalone Express, which 'cl' outputs:
*noSP: Version 14.00.50727.42
*SP1 : Version 14.00.50727.762
Yours (....867) seems newer!?
Comment 18•14 years ago
|
||
Mine is 14.00.50727.762
Assignee: nobody → sgautherie.bz
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
This bug blocks final. This does not need explicit approval.
Attachment #477529 -
Flags: approval2.0?
blocking2.0: final+ → -
Attachment #477529 -
Flags: approval2.0+
Assignee | ||
Comment 20•14 years ago
|
||
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
(In reply to comment #7)
> I backed out all the changesets in your push
http://hg.mozilla.org/mozilla-central/rev/57b6fe67200c
Assignee | ||
Comment 21•14 years ago
|
||
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
http://hg.mozilla.org/mozilla-central/rev/6b23d13ab112
Attachment #477529 -
Attachment description: (Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 4] → (Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 21]
Comment 22•14 years ago
|
||
Backed out -- not a b7/a2 blocker.
http://hg.mozilla.org/mozilla-central/rev/81a060f9cbaf
Assignee | ||
Comment 23•14 years ago
|
||
(In reply to comment #22)
> Backed out -- not a b7/a2 blocker.
Damn! How can that be when default branch is 2.0b8pre?
Comment 24•14 years ago
|
||
Assignee | ||
Comment 25•14 years ago
|
||
(In reply to comment #24)
> http://groups.google.mn/group/mozilla.dev.planning/browse_thread/thread/3538e7b1f4fea779#
"we decided to ship Firefox 4 Beta 7 from mozilla-central instead of the relbranch that we created on October 6th":
talk about confusion :-|
Keywords: checkin-needed
Whiteboard: [c-n: after 2.0b7 freeze]
Assignee | ||
Comment 26•14 years ago
|
||
Comment on attachment 477529 [details] [diff] [review]
(Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
http://hg.mozilla.org/mozilla-central/rev/a591147ec48b
Attachment #477529 -
Attachment description: (Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 21] → (Av1) Add an unrelated PRUint8() cast
[Checked in: Comment 26]
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Whiteboard: [c-n: after 2.0b7 freeze]
Assignee | ||
Updated•14 years ago
|
Assignee: sgautherie.bz → nobody
Assignee | ||
Comment 27•14 years ago
|
||
(In reply to comment #15)
> NB: I'm now wondering whether non-SP1 may be starting to have difficulties with
> our more recent code. I'll try to upgrade...
That was it: I filed bug 610936.
Comment 28•14 years ago
|
||
This has a patch so I'll just mark it fixed rather than invalid as we're not going to take any other patch that hacks up perfectly good code.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Summary: "DOMSVGLength.cpp(58) : error C2248: 'mozilla::DOMSVGLengthList::mItems' : cannot access private member declared in class 'mozilla::DOMSVGLengthList'" → Fix build warning - 'argument' : conversion from 'PRUint16' to 'PRUint8', possible loss of data
Updated•14 years ago
|
Severity: blocker → trivial
Keywords: helpwanted
Assignee | ||
Updated•14 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•