aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBCore.cpp
diff options
context:
space:
mode:
authorNico <NicoHood@users.noreply.github.com>2015-09-24 11:24:09 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-09-28 16:30:39 +0200
commit948c73c5e376a6c80b79b2b74ecac821f2b66c58 (patch)
tree8c30941eb1d653c73b2b1e2969c7f0ab31e01851 /cores/arduino/USBCore.cpp
parent37e2914dbb025ff7bf72ce48789229eaac68fbb1 (diff)
Fix compiler warnings in USBCore.cpp
Diffstat (limited to 'cores/arduino/USBCore.cpp')
-rw-r--r--cores/arduino/USBCore.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index f12d326..733a178 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -372,8 +372,8 @@ bool ClassInterfaceRequest(USBSetup& setup)
return false;
}
-int _cmark;
-int _cend;
+static int _cmark;
+static int _cend;
void InitControl(int end)
{
SetEP(0);
@@ -438,7 +438,7 @@ int USB_RecvControl(void* d, int len)
return len;
}
-int SendInterfaces()
+static u8 SendInterfaces()
{
u8 interfaces = 0;
@@ -459,7 +459,7 @@ bool SendConfiguration(int maxlen)
{
// Count and measure interfaces
InitControl(0);
- int interfaces = SendInterfaces();
+ u8 interfaces = SendInterfaces();
ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces);
// Now send them
@@ -469,7 +469,7 @@ bool SendConfiguration(int maxlen)
return true;
}
-u8 _cdcComposite = 0;
+static u8 _cdcComposite = 0;
static
bool SendDescriptor(USBSetup& setup)