From 069b76017416fe8119fa04599d671b0e0fc5d1d1 Mon Sep 17 00:00:00 2001 From: Luke McConnell Date: Sun, 3 Jan 2016 15:25:20 +0000 Subject: [PATCH] Resolve compiler warning in USBCore Resolve compiler warning from performing arithmetic on void pointers --- cores/arduino/USB/USBCore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/USB/USBCore.cpp b/cores/arduino/USB/USBCore.cpp index 9642c2aad..cd356d578 100644 --- a/cores/arduino/USB/USBCore.cpp +++ b/cores/arduino/USB/USBCore.cpp @@ -646,7 +646,7 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len) ; // need fire exit. } len -= length; - data += length; + data = (char *)data + length; } return len; }