Closed
Bug 1030299
Opened 12 years ago
Closed 12 years ago
Cleanup a build warning in Volume.cpp
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dhylands, Assigned: reznord, Mentored)
Details
(Whiteboard: [good first bug][lang=C++])
Attachments
(1 file, 3 obsolete files)
|
1.15 KB,
patch
|
dhylands
:
review+
|
Details | Diff | Splinter Review |
I noticed the following build warnings, which should be fixed:
> In file included from ../../../../b2g-inbound/dom/system/gonk/Volume.cpp:5:0:
> ../../../../b2g-inbound/dom/system/gonk/Volume.h: In constructor 'mozilla::system::Volume::Volume(const nsCSubstring&)':
> ../../../../b2g-inbound/dom/system/gonk/Volume.h:111:8: warning: 'mozilla::system::Volume::mIsSharing' will be initialized after [-Wreorder]
> ../../../../b2g-inbound/dom/system/gonk/Volume.h:107:8: warning: 'bool mozilla::system::Volume::mFormatRequested' [-Wreorder]
> ../../../../b2g-inbound/dom/system/gonk/Volume.cpp:55:1: warning: when initialized here [-Wreorder]
| Assignee | ||
Comment 1•12 years ago
|
||
Hi,
I am interested in working on this bug. Can you please assign it to me?
Thanks in advance,
Regards,
A. Anup
| Reporter | ||
Updated•12 years ago
|
Assignee: nobody → allamsetty.anup
| Reporter | ||
Comment 2•12 years ago
|
||
It is now assigned to you. You'll need to be able to build B2G. Let me know if I can help. I'm in the Pacific Time Zone (UTC-7).
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Dave Hylands [:dhylands] from comment #2)
> It is now assigned to you. You'll need to be able to build B2G. Let me know
> if I can help. I'm in the Pacific Time Zone (UTC-7).
I have completed the B2G build in my system without any errors. It works perfectly fine. :)
| Assignee | ||
Comment 4•12 years ago
|
||
Added the changes according to the bug. Think I did it correctly. I tested it by building it after adding the changes.
Attachment #8446588 -
Flags: review?(dhylands)
| Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 8446588 [details] [diff] [review]
Cleared the build warning.
Review of attachment 8446588 [details] [diff] [review]:
-----------------------------------------------------------------
So your patch contains both the changes in Volume.cpp and a patch of the changes in Volume.cpp.
You should remove the patch within a patch, since we don't want to check that in.
Attachment #8446588 -
Flags: review?(dhylands)
| Assignee | ||
Comment 6•12 years ago
|
||
Made the changes according to the bug and created a patch.
Attachment #8446588 -
Attachment is obsolete: true
Attachment #8446667 -
Flags: review?(dhylands)
| Reporter | ||
Comment 7•12 years ago
|
||
Comment on attachment 8446667 [details] [diff] [review]
Cleared the build warning in Volume.cpp
Review of attachment 8446667 [details] [diff] [review]:
-----------------------------------------------------------------
Hmm. So after applying your patch, I now get the following warning instead:
> In file included from ../../../../b2g-inbound/dom/system/gonk/Volume.cpp:5:0:
> ../../../../b2g-inbound/dom/system/gonk/Volume.h: In constructor 'mozilla::system::Volume::Volume(const nsCSubstring&)':
> ../../../../b2g-inbound/dom/system/gonk/Volume.h:110:8: warning: 'mozilla::system::Volume::mCanBeShared' will be initialized after [-Wreorder]
> ../../../../b2g-inbound/dom/system/gonk/Volume.h:107:8: warning: 'bool mozilla::system::Volume::mFormatRequested' [-Wreorder]
> ../../../../b2g-inbound/dom/system/gonk/Volume.cpp:55:1: warning: when initialized here [-Wreorder]
Attachment #8446667 -
Flags: review?(dhylands) → review-
| Assignee | ||
Comment 8•12 years ago
|
||
Changed it according to the order in Volume.h and submitted a patch.
Attachment #8446667 -
Attachment is obsolete: true
Attachment #8446996 -
Flags: review?(dhylands)
| Reporter | ||
Comment 9•12 years ago
|
||
Comment on attachment 8446996 [details] [diff] [review]
Changed the order according to Volume.h and removed the warnings.
Review of attachment 8446996 [details] [diff] [review]:
-----------------------------------------------------------------
Excellent - no more warnings.
Attachment #8446996 -
Flags: review?(dhylands) → review+
| Reporter | ||
Comment 10•12 years ago
|
||
Comment on attachment 8446996 [details] [diff] [review]
Changed the order according to Volume.h and removed the warnings.
The subject shouldn't have [PATCH] in front of the bug number, but otherwise this looks good.
So please edit the patch and re-attach it.
| Assignee | ||
Comment 11•12 years ago
|
||
Attachment #8446996 -
Attachment is obsolete: true
Attachment #8447560 -
Flags: review?(dhylands)
| Reporter | ||
Updated•12 years ago
|
Attachment #8447560 -
Flags: review?(dhylands) → review+
| Reporter | ||
Comment 12•12 years ago
|
||
OK - next step is to get it landed. Since you don't have checkin priviledge yet, you need to add "checkin-needed" to the keywords on the bug.
However, the current policy requires a try-run before the sherriffs will land any checkin-needed bugs.
In order to submit a try-run you'll need to get Level 1 committer access.
http://www.mozilla.org/hacking/commit-access-policy/
https://wiki.mozilla.org/ReleaseEngineering/TryServer
I'd be happy to vouch for you.
Feel free to ask if you have any questions.
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 13•12 years ago
|
||
Hi Anup, could you provide as Dave mentioned a try link for the checkin ?
| Reporter | ||
Comment 14•12 years ago
|
||
Anup - I'm going to remove checkin-needed for now. Once you've got the try-run happening, then we can add it back then.
Keywords: checkin-needed
| Assignee | ||
Comment 15•12 years ago
|
||
Here is the try request link:
https://tbpl.mozilla.org/?tree=Try&rev=7c06ae9b0509
| Reporter | ||
Comment 16•12 years ago
|
||
That looks good. This particular bug only modified files which get built by B2G - and those were all green.
So I added checkin-needed back to the bug.
Keywords: checkin-needed
Comment 17•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e5480588876b
Please try to be more conscientious about what builds/tests you run on your Try pushes. For something like this, a simple "does it build?" push on one platform probably would have sufficed instead of running all builds and tests on every platform. Doing so wastes tons of machine time (300+ hours) and contributes to long backlogs felt by everybody else. The link below provides some more recommendations about using Try. Thanks!
https://wiki.mozilla.org/Sheriffing/How:To:Recommended_Try_Practices
Keywords: checkin-needed
| Assignee | ||
Comment 18•12 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #17)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/e5480588876b
>
> Please try to be more conscientious about what builds/tests you run on your
> Try pushes. For something like this, a simple "does it build?" push on one
> platform probably would have sufficed instead of running all builds and
> tests on every platform. Doing so wastes tons of machine time (300+ hours)
> and contributes to long backlogs felt by everybody else. The link below
> provides some more recommendations about using Try. Thanks!
I am really sorry for my mistake. From the next time I will make sure that it won't happen again.
Once again I am really sorry for what happened.
| Reporter | ||
Comment 19•12 years ago
|
||
That was really my mistake. I suggested to Anup what try string to use, and since this was his first try run, I was trying to make things simple and not overcomplicate.
In this particular case we probably could have gotten away with a build-only limited to B2G build.
Comment 20•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•