Closed Bug 832545 Opened 11 years ago Closed 11 years ago

Mark /gfx/thebes as FAIL_ON_WARNINGS (but not on MSVC, for 'loss of precision' warnings)

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

With bug 832440, bug 832486, and bug 832456 fixed, /gfx/thebes is now warning-free on my Linux machine.

Filing this bug on marking it as such.

(We can't mark this directory as warning-free on Windows/MSVC, because there are a lot of MSVC-only 'loss of precision' warnings for e.g. double --> float conversions, which I don't think are going to be fixed anytime soon.)
I did a Try push to test this out:
 https://tbpl.mozilla.org/?tree=Try&rev=cd68a7fafbcd

It hit mac failures due to using a deprecated API in some mac-specific code.  I filed bug 832548 on that, in case it's easily-fixable -- but if we're stuck using that deprecated API (and hence stuck with the build warning), we may want to make the Makefile annotation non-Mac (as well as non-MSVC).
Depends on: 832554
Depends on: 833066
Depends on: 833073
Try push with the various android-only thebes build warnings fixed (I think):
 https://tbpl.mozilla.org/?tree=Try&rev=5837079c554e
Summary: Mark /gfx/thebes as FAIL_ON_WARNINGS on non-MSVC compilers → Mark /gfx/thebes as FAIL_ON_WARNINGS (but not on MSVC, for 'loss of precision' warnings, and not on Cocoa, for -Wdeprecated-declaration)
(In reply to Daniel Holbert [:dholbert] from comment #1)
> It hit mac failures due to using a deprecated API in some mac-specific code.
> [...] if we're
> stuck using that deprecated API (and hence stuck with the build warning), we
> may want to make the Makefile annotation non-Mac (as well as non-MSVC).

(actually, I think we may want to keep that build warning from triggering errors -- I filed bug 833405 on that.)
Depends on: 833405
Summary: Mark /gfx/thebes as FAIL_ON_WARNINGS (but not on MSVC, for 'loss of precision' warnings, and not on Cocoa, for -Wdeprecated-declaration) → Mark /gfx/thebes as FAIL_ON_WARNINGS (but not on MSVC, for 'loss of precision' warnings)
Attached patch fixSplinter Review
Green try push (w/ bug 832440 fixed), demonstrating that this doesn't bust stuff:
 https://tbpl.mozilla.org/?tree=Try&rev=9c2797db6bb3
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #705159 - Flags: review?(bgirard)
Depends on: 835473
Comment on attachment 705159 [details] [diff] [review]
fix

I'm not to familiar with the right ifdef variable (_MSC_VER) to use but given that it's used elsewhere I don't think it's worth getting a build peer to review it.
Attachment #705159 - Flags: review?(bgirard) → review+
(In reply to Benoit Girard (:BenWa) from comment #5)
> I'm not to familiar with the right ifdef variable (_MSC_VER) to use but
> given that it's used elsewhere I don't think it's worth getting a build peer
> to review it.

That's the variable that was used in bug 824247 part 3, which Ted reviewed, so I think it's good.

Thanks for the review!
all-green try run from earlier today, FWIW (w/ fix for recently-introduced bug 835473):
 https://tbpl.mozilla.org/?tree=Try&rev=808ba8a1342e
https://hg.mozilla.org/mozilla-central/rev/cdd57f3e1384
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: