summaryrefslogtreecommitdiffstats
path: root/adb/sysdeps_win32.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-30 09:10:31 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-05 10:30:06 -0700
commit60299dfd6a5dca059a079bc8e11d45a1fecf02d0 (patch)
tree720d2b7121f1ee7bf431eed620d88ff070caff34 /adb/sysdeps_win32.c
parentc9303f317562eb1cad5dd27a99a97f85b5acf136 (diff)
downloadcore-60299dfd6a5dca059a079bc8e11d45a1fecf02d0.tar.gz
core-60299dfd6a5dca059a079bc8e11d45a1fecf02d0.tar.bz2
core-60299dfd6a5dca059a079bc8e11d45a1fecf02d0.zip
adb: turn on -Werror
- Deal with some -Wunused issues Change-Id: Idfd1a114e68ae637978b52fde5144d0dca0ec79f
Diffstat (limited to 'adb/sysdeps_win32.c')
-rw-r--r--adb/sysdeps_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/sysdeps_win32.c b/adb/sysdeps_win32.c
index 2105b1687..b0cb0488d 100644
--- a/adb/sysdeps_win32.c
+++ b/adb/sysdeps_win32.c
@@ -956,7 +956,7 @@ bip_buffer_write( BipBuffer bip, const void* src, int len )
avail = len;
memcpy( bip->buff + bip->a_end, src, avail );
- src += avail;
+ src = (const char *)src + avail;
count += avail;
len -= avail;
@@ -1049,7 +1049,7 @@ bip_buffer_read( BipBuffer bip, void* dst, int len )
avail = len;
memcpy( dst, bip->buff + bip->a_start, avail );
- dst += avail;
+ dst = (char *)dst + avail;
count += avail;
len -= avail;