aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorAlex Vakulenko <avakulenko@google.com>2016-02-24 10:03:40 -0800
committerAlex Vakulenko <avakulenko@google.com>2016-02-24 18:27:23 +0000
commit37994f4c6834979360c32ad4877588a4cb446d06 (patch)
treec030a13c61ba2ae3e303a89b87f3112d0cc46bc3 /third_party
parentebde3c1e1e87202d6c81a7351921468703be7b6f (diff)
downloadlibweave-37994f4c6834979360c32ad4877588a4cb446d06.tar.gz
Fix some of compiler warnings.
Also re-enabled redundant warnings that no-longer occur in code. Change-Id: I900cf1d732f96aaad40bee2b6da52fe43889331a Reviewed-on: https://weave-review.googlesource.com/2732 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/chromium/base/third_party/dmg_fp/dtoa.cc3
-rw-r--r--third_party/chromium/base/third_party/dmg_fp/g_fmt.cc6
2 files changed, 5 insertions, 4 deletions
diff --git a/third_party/chromium/base/third_party/dmg_fp/dtoa.cc b/third_party/chromium/base/third_party/dmg_fp/dtoa.cc
index 502c16c..c06219c 100644
--- a/third_party/chromium/base/third_party/dmg_fp/dtoa.cc
+++ b/third_party/chromium/base/third_party/dmg_fp/dtoa.cc
@@ -59,6 +59,7 @@
* 4. Because of 3., we don't need a large table of powers of 10
* for ten-to-e (just some small tables, e.g. of 10^k
* for 0 <= k <= 22).
+ * 5. Fixed -Wchar-subscripts warning in "if (!hexdig['0'])"
*/
/*
@@ -1572,7 +1573,7 @@ hexnan
CONST char *s;
int c1, havedig, udx0, xshift;
- if (!hexdig['0'])
+ if (!hexdig[0 + '0'])
hexdig_init();
x[0] = x[1] = 0;
havedig = xshift = 0;
diff --git a/third_party/chromium/base/third_party/dmg_fp/g_fmt.cc b/third_party/chromium/base/third_party/dmg_fp/g_fmt.cc
index bfa358d..67c9f57 100644
--- a/third_party/chromium/base/third_party/dmg_fp/g_fmt.cc
+++ b/third_party/chromium/base/third_party/dmg_fp/g_fmt.cc
@@ -27,10 +27,10 @@
namespace dmg_fp {
char *
-g_fmt(register char *b, double x)
+g_fmt(char *b, double x)
{
- register int i, k;
- register char *s;
+ int i, k;
+ char *s;
int decpt, j, sign;
char *b0, *s0, *se;