summaryrefslogtreecommitdiffstats
path: root/adb/usb_windows.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/usb_windows.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/usb_windows.c')
-rw-r--r--adb/usb_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/usb_windows.c b/adb/usb_windows.c
index 4936b77b6..1309a78cf 100644
--- a/adb/usb_windows.c
+++ b/adb/usb_windows.c
@@ -310,14 +310,14 @@ int usb_read(usb_handle *handle, void* data, int len) {
int xfer = (len > 4096) ? 4096 : len;
ret = AdbReadEndpointSync(handle->adb_read_pipe,
- (void*)data,
+ data,
(unsigned long)xfer,
&read,
time_out);
int saved_errno = GetLastError();
D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, saved_errno);
if (ret) {
- data += read;
+ data = (char *)data + read;
len -= read;
if (len == 0)