On 2013/01/08 20:04:47, reed1 wrote: > me no likie the neg infinity change... unless we ...
11 years, 10 months ago
(2013-01-08 20:08:00 UTC)
#4
On 2013/01/08 20:04:47, reed1 wrote:
> me no likie the neg infinity change... unless we really need it.
negInf does seem a little hamfisted, but it's also probably too broad to turn
off the warning that it creates in whatever header file that #defines it, since
that's probably included almost everywhere.
I prefer zero warnings to -inf so this is fine with me but we're starting to (or
maybe way past the point of) philosophical debate about code cleanliness :)
On 2013/01/08 20:08:00, Humper wrote: > On 2013/01/08 20:04:47, reed1 wrote: > > me no ...
11 years, 10 months ago
(2013-01-08 20:12:12 UTC)
#5
On 2013/01/08 20:08:00, Humper wrote:
> On 2013/01/08 20:04:47, reed1 wrote:
> > me no likie the neg infinity change... unless we really need it.
>
> negInf does seem a little hamfisted, but it's also probably too broad to turn
> off the warning that it creates in whatever header file that #defines it,
since
> that's probably included almost everywhere.
>
> I prefer zero warnings to -inf so this is fine with me but we're starting to
(or
> maybe way past the point of) philosophical debate about code cleanliness :)
The error comes when LTCG actually resolves gIEEEInfinity to a compile time
constant. The linker's code generator negates infinity and sees that value is
(shockingly) negative infinity and says:
d:\src\skia6\tests\pathtest.cpp(256): warning C4756: overflow in constant
arithmetic
An alternative is to #pragma push/disable/pop around the usage in PathTest.cpp
(assuming that the LTCG respects the disable). I'm okay with that.
On 2013/01/08 20:12:12, bsalomon wrote: > On 2013/01/08 20:08:00, Humper wrote: > > On 2013/01/08 ...
11 years, 10 months ago
(2013-01-08 20:15:05 UTC)
#6
On 2013/01/08 20:12:12, bsalomon wrote:
> On 2013/01/08 20:08:00, Humper wrote:
> > On 2013/01/08 20:04:47, reed1 wrote:
> > > me no likie the neg infinity change... unless we really need it.
> >
> > negInf does seem a little hamfisted, but it's also probably too broad to
turn
> > off the warning that it creates in whatever header file that #defines it,
> since
> > that's probably included almost everywhere.
> >
> > I prefer zero warnings to -inf so this is fine with me but we're starting to
> (or
> > maybe way past the point of) philosophical debate about code cleanliness :)
>
> The error comes when LTCG actually resolves gIEEEInfinity to a compile time
> constant. The linker's code generator negates infinity and sees that value is
> (shockingly) negative infinity and says:
>
> d:\src\skia6\tests\pathtest.cpp(256): warning C4756: overflow in constant
> arithmetic
>
> An alternative is to #pragma push/disable/pop around the usage in PathTest.cpp
> (assuming that the LTCG respects the disable). I'm okay with that.
also assuming we don't actually CARE about the overflow ;)
On 2013/01/08 20:15:05, Humper wrote: > On 2013/01/08 20:12:12, bsalomon wrote: > > On 2013/01/08 ...
11 years, 10 months ago
(2013-01-08 20:29:35 UTC)
#7
On 2013/01/08 20:15:05, Humper wrote:
> On 2013/01/08 20:12:12, bsalomon wrote:
> > On 2013/01/08 20:08:00, Humper wrote:
> > > On 2013/01/08 20:04:47, reed1 wrote:
> > > > me no likie the neg infinity change... unless we really need it.
> > >
> > > negInf does seem a little hamfisted, but it's also probably too broad to
> turn
> > > off the warning that it creates in whatever header file that #defines it,
> > since
> > > that's probably included almost everywhere.
> > >
> > > I prefer zero warnings to -inf so this is fine with me but we're starting
to
> > (or
> > > maybe way past the point of) philosophical debate about code cleanliness
:)
> >
> > The error comes when LTCG actually resolves gIEEEInfinity to a compile time
> > constant. The linker's code generator negates infinity and sees that value
is
> > (shockingly) negative infinity and says:
> >
> > d:\src\skia6\tests\pathtest.cpp(256): warning C4756: overflow in constant
> > arithmetic
> >
> > An alternative is to #pragma push/disable/pop around the usage in
PathTest.cpp
> > (assuming that the LTCG respects the disable). I'm okay with that.
>
> also assuming we don't actually CARE about the overflow ;)
Mike said "uncle", landing as is.
Issue 7066054: Enable warnings-as-errors on Windows.
(Closed)
Created 11 years, 10 months ago by bsalomon
Modified 11 years, 10 months ago
Reviewers: reed1, Humper, robertphillips
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0