Closed
Bug 824247
Opened 10 years ago
Closed 10 years ago
Enable warnings as errors (with FAIL_ON_WARNINGS) for MSVC
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla20
People
(Reporter: emk, Assigned: emk)
References
Details
Attachments
(5 files, 2 obsolete files)
10.82 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
1.21 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
38.67 KB,
patch
|
ted
:
superreview+
|
Details | Diff | Splinter Review |
357.39 KB,
text/plain
|
Details | |
269 bytes,
text/plain
|
Details |
I think we need somthing like FAIL_ON_WARNINGS_MSVC because MSVC is generating too many warnings on FAIL_ON_WARNINGS directories right now.
![]() |
||
Comment 1•10 years ago
|
||
+1
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #695483 -
Flags: review?(bugs)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #695484 -
Flags: review?(khuey)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #695485 -
Flags: review?(ted)
Comment 6•10 years ago
|
||
Comment on attachment 695483 [details] [diff] [review] Part 1: Fix common source of warning spam (dom) > > nsresult InitTimer(nsTimerCallbackFunc aFunc, uint64_t delay) { >- return mTimer->InitWithFuncCallback(aFunc, this, delay, >+ return mTimer->InitWithFuncCallback(aFunc, this, >+ static_cast<uint32_t>(delay), > nsITimer::TYPE_ONE_SHOT); Hmm, odd, why does InitTimer take uint64_t
Attachment #695483 -
Flags: review?(bugs) → review+
Comment 7•10 years ago
|
||
Comment on attachment 695482 [details] [diff] [review] Part 1: Introduce FAIL_ON_WARNINGS_MSVC Review of attachment 695482 [details] [diff] [review]: ----------------------------------------------------------------- Why not just wrap FAIL_ON_WARNINGS in "ifndef _MSC_VER" in directories where you don't want it to apply for MSVC? Seems a lot simpler than introducing this new variable.
Assignee | ||
Updated•10 years ago
|
Attachment #695483 -
Attachment description: Part 2: Fix common source of warning spam (dom) → Part 1: Fix common source of warning spam (dom)
Assignee | ||
Updated•10 years ago
|
Attachment #695484 -
Attachment description: Part 3: Fix common source of warning span (dom/bindings) → Part 2: Fix common source of warning span (dom/bindings)
Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #7) > Why not just wrap FAIL_ON_WARNINGS in "ifndef _MSC_VER" in directories where > you don't want it to apply for MSVC? Seems a lot simpler than introducing > this new variable. Fair enough. I had to move some lines because _MSC_VER was not available until autoconf.mk is included. Try result: https://tbpl.mozilla.org/?tree=Try&rev=e2751e243b74
Attachment #695482 -
Attachment is obsolete: true
Attachment #695485 -
Attachment is obsolete: true
Attachment #695482 -
Flags: review?(ted)
Attachment #695485 -
Flags: review?(ted)
Attachment #696290 -
Flags: superreview?(ted)
Attachment #695484 -
Flags: review?(khuey) → review+
Updated•10 years ago
|
Attachment #696290 -
Flags: superreview?(ted) → superreview+
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e626106842f https://hg.mozilla.org/integration/mozilla-inbound/rev/0a4639f9ed38 https://hg.mozilla.org/integration/mozilla-inbound/rev/4983b42d58c9
Flags: in-testsuite-
Updated•10 years ago
|
Blocks: FAIL_ON_WARNINGS
Updated•10 years ago
|
Summary: Enable WARNINGS_AS_ERRORS for MSVC → Enable warnings as errors (with FAIL_ON_WARNINGS) for MSVC
Comment 10•10 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #6) > Comment on attachment 695483 [details] [diff] [review] > Part 1: Fix common source of warning spam (dom) > > > > > nsresult InitTimer(nsTimerCallbackFunc aFunc, uint64_t delay) { > >- return mTimer->InitWithFuncCallback(aFunc, this, delay, > >+ return mTimer->InitWithFuncCallback(aFunc, this, > >+ static_cast<uint32_t>(delay), > > nsITimer::TYPE_ONE_SHOT); > > Hmm, odd, why does InitTimer take uint64_t I noticed this, too -- I think we should make InitTimer take a uint32_t, rather than casting its argument to that. I filed bug 825949 on that.
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0e626106842f https://hg.mozilla.org/mozilla-central/rev/0a4639f9ed38 https://hg.mozilla.org/mozilla-central/rev/4983b42d58c9
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Assignee | ||
Comment 12•10 years ago
|
||
(Sorry for the Japanese localized messages)
Assignee | ||
Comment 13•10 years ago
|
||
./mach warnings-list and ./mach warnings-summary did the great job.
Updated•9 years ago
|
No longer blocks: FAIL_ON_WARNINGS
Depends on: FAIL_ON_WARNINGS
Updated•5 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•