summaryrefslogtreecommitdiffstats
path: root/base/third_party
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 17:54:05 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 17:54:05 +0000
commitbd3abd4d4a18f3aa75d5e0992a19d29be895092f (patch)
tree56c9007ca567b798954497f74e8ed8a42fe2b253 /base/third_party
parent083f09e67820c19961cb009e85db14d3356cf55f (diff)
downloadchromium_src-bd3abd4d4a18f3aa75d5e0992a19d29be895092f.zip
chromium_src-bd3abd4d4a18f3aa75d5e0992a19d29be895092f.tar.gz
chromium_src-bd3abd4d4a18f3aa75d5e0992a19d29be895092f.tar.bz2
Disable some warnings in third party code so I can turn on -Werror.
Review URL: http://codereview.chromium.org/101005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/third_party')
-rw-r--r--base/third_party/dmg_fp/dtoa.cc4
-rw-r--r--base/third_party/dmg_fp/gcc_warnings.patch63
2 files changed, 40 insertions, 27 deletions
diff --git a/base/third_party/dmg_fp/dtoa.cc b/base/third_party/dmg_fp/dtoa.cc
index e409d4a..ba49857 100644
--- a/base/third_party/dmg_fp/dtoa.cc
+++ b/base/third_party/dmg_fp/dtoa.cc
@@ -172,6 +172,10 @@
*/
#define IEEE_8087
+#if defined(__GNUC__)
+// Make gcc 4.3+ warnings about parentheses non-fatal warnings.
+#pragma GCC diagnostic warning "-Wparentheses"
+#endif
#ifndef Long
#define Long long
diff --git a/base/third_party/dmg_fp/gcc_warnings.patch b/base/third_party/dmg_fp/gcc_warnings.patch
index 1a021d0..1aa6a25 100644
--- a/base/third_party/dmg_fp/gcc_warnings.patch
+++ b/base/third_party/dmg_fp/gcc_warnings.patch
@@ -1,8 +1,18 @@
Index: dtoa.cc
-===================================================================
---- dtoa.cc (revision 9233)
-+++ dtoa.cc (working copy)
-@@ -515,7 +515,7 @@
+--- dtoa.cc (old copy)
++++ dtoa.cc (working copy)
+@@ -172,6 +172,10 @@
+ */
+
+ #define IEEE_8087
++#if defined(__GNUC__)
++// Make gcc 4.3+ warnings about parentheses non-fatal warnings.
++#pragma GCC diagnostic warning "-Wparentheses"
++#endif
+
+ #ifndef Long
+ #define Long long
+@@ -515,7 +519,7 @@ Balloc
#endif
ACQUIRE_DTOA_LOCK(0);
@@ -11,7 +21,7 @@ Index: dtoa.cc
freelist[k] = rv->next;
}
else {
-@@ -794,7 +794,7 @@
+@@ -794,7 +798,7 @@ mult
xc0 = c->x;
#ifdef ULLong
for(; xb < xbe; xc0++) {
@@ -20,7 +30,7 @@ Index: dtoa.cc
x = xa;
xc = xc0;
carry = 0;
-@@ -876,7 +876,7 @@
+@@ -876,7 +880,7 @@ pow5mult
int i;
static int p05[3] = { 5, 25, 125 };
@@ -29,7 +39,7 @@ Index: dtoa.cc
b = multadd(b, p05[i-1], 0);
if (!(k >>= 2))
-@@ -957,7 +957,7 @@
+@@ -957,7 +961,7 @@ lshift
z = *x++ >> k1;
}
while(x < xe);
@@ -38,7 +48,7 @@ Index: dtoa.cc
++n1;
}
#else
-@@ -1259,12 +1259,12 @@
+@@ -1259,12 +1263,12 @@ d2b
z |= Exp_msk11;
#endif
#else
@@ -54,7 +64,7 @@ Index: dtoa.cc
x[0] = y | z << 32 - k;
z >>= k;
}
-@@ -1452,13 +1452,13 @@
+@@ -1452,13 +1456,13 @@ match
#ifdef KR_headers
(sp, t) char **sp, *t;
#else
@@ -70,7 +80,7 @@ Index: dtoa.cc
if ((c = *++s) >= 'A' && c <= 'Z')
c += 'a' - 'A';
if (c != d)
-@@ -1490,7 +1490,7 @@
+@@ -1490,7 +1494,7 @@ hexnan
++s;
if (s[1] == '0' && (s[2] == 'x' || s[2] == 'X'))
s += 2;
@@ -79,7 +89,7 @@ Index: dtoa.cc
if (c >= '0' && c <= '9')
c -= '0';
else if (c >= 'a' && c <= 'f')
-@@ -1518,7 +1518,7 @@
+@@ -1518,7 +1522,7 @@ hexnan
*sp = s + 1;
break;
}
@@ -88,7 +98,7 @@ Index: dtoa.cc
break;
}
#endif
-@@ -1852,7 +1852,7 @@
+@@ -1852,7 +1856,7 @@ strtod
/* Get starting approximation = rv * 10**e1 */
if (e1 > 0) {
@@ -97,7 +107,7 @@ Index: dtoa.cc
dval(rv) *= tens[i];
if (e1 &= ~15) {
if (e1 > DBL_MAX_10_EXP) {
-@@ -1912,7 +1912,7 @@
+@@ -1912,7 +1916,7 @@ strtod
}
else if (e1 < 0) {
e1 = -e1;
@@ -106,7 +116,7 @@ Index: dtoa.cc
dval(rv) /= tens[i];
if (e1 >>= 4) {
if (e1 >= 1 << n_bigtens)
-@@ -2580,7 +2580,7 @@
+@@ -2580,7 +2584,7 @@ rv_alloc(int i)
j = sizeof(ULong);
for(k = 0;
@@ -115,7 +125,7 @@ Index: dtoa.cc
j <<= 1)
k++;
r = (int*)Balloc(k);
-@@ -2596,13 +2596,13 @@
+@@ -2596,13 +2600,13 @@ rv_alloc(int i)
#ifdef KR_headers
nrv_alloc(s, rve, n) char *s, **rve; int n;
#else
@@ -131,7 +141,7 @@ Index: dtoa.cc
if (rve)
*rve = t;
return rv;
-@@ -2707,7 +2707,7 @@
+@@ -2707,7 +2711,7 @@ dtoa
to hold the suppressed trailing zeros.
*/
@@ -140,7 +150,7 @@ Index: dtoa.cc
j, j1, k, k0, k_check, leftright, m2, m5, s2, s5,
spec_case, try_quick;
Long L;
-@@ -2792,7 +2792,7 @@
+@@ -2792,7 +2796,7 @@ dtoa
#ifdef Sudden_Underflow
i = (int)(word0(d) >> Exp_shift1 & (Exp_mask>>Exp_shift1));
#else
@@ -149,7 +159,7 @@ Index: dtoa.cc
#endif
dval(d2) = dval(d);
word0(d2) &= Frac_mask1;
-@@ -2946,7 +2946,7 @@
+@@ -2946,7 +2950,7 @@ dtoa
}
dval(d) /= ds;
}
@@ -158,7 +168,7 @@ Index: dtoa.cc
dval(d) *= tens[j1 & 0xf];
for(j = j1 >> 4; j; j >>= 1, i++)
if (j & 1) {
-@@ -3107,7 +3107,7 @@
+@@ -3107,7 +3111,7 @@ dtoa
Bfree(b);
b = b1;
}
@@ -167,7 +177,7 @@ Index: dtoa.cc
b = pow5mult(b, j);
}
else
-@@ -3145,7 +3145,7 @@
+@@ -3145,7 +3149,7 @@ dtoa
* can do shifts and ors to compute the numerator for q.
*/
#ifdef Pack_32
@@ -176,7 +186,7 @@ Index: dtoa.cc
i = 32 - i;
#else
if (i = ((s5 ? 32 - hi0bits(S->x[S->wds-1]) : 1) + s2) & 0xf)
-@@ -3322,7 +3322,9 @@
+@@ -3322,7 +3326,9 @@ dtoa
++*s++;
}
else {
@@ -187,10 +197,9 @@ Index: dtoa.cc
s++;
}
Index: g_fmt.cc
-===================================================================
---- g_fmt.cc (revision 9233)
-+++ g_fmt.cc (working copy)
-@@ -46,14 +46,14 @@
+--- g_fmt.cc (old copy)
++++ g_fmt.cc (new copy)
+@@ -46,14 +46,14 @@ g_fmt(register char *b, double x)
if (sign)
*b++ = '-';
if (decpt == 9999) /* Infinity or Nan */ {
@@ -207,7 +216,7 @@ Index: g_fmt.cc
b++;
}
*b++ = 'e';
-@@ -79,10 +79,10 @@
+@@ -79,10 +79,10 @@ g_fmt(register char *b, double x)
*b++ = '.';
for(; decpt < 0; decpt++)
*b++ = '0';
@@ -220,7 +229,7 @@ Index: g_fmt.cc
b++;
if (--decpt == 0 && *s)
*b++ = '.';
-@@ -93,7 +93,9 @@
+@@ -93,7 +93,9 @@ g_fmt(register char *b, double x)
}
done0:
freedtoa(s0);