Skip to content

Commit 948c73c

Browse files
NicoHoodcmaglie
authored andcommitted
Fix compiler warnings in USBCore.cpp
1 parent 37e2914 commit 948c73c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cores/arduino/USBCore.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ bool ClassInterfaceRequest(USBSetup& setup)
372372
return false;
373373
}
374374

375-
int _cmark;
376-
int _cend;
375+
static int _cmark;
376+
static int _cend;
377377
void InitControl(int end)
378378
{
379379
SetEP(0);
@@ -438,7 +438,7 @@ int USB_RecvControl(void* d, int len)
438438
return len;
439439
}
440440

441-
int SendInterfaces()
441+
static u8 SendInterfaces()
442442
{
443443
u8 interfaces = 0;
444444

@@ -459,7 +459,7 @@ bool SendConfiguration(int maxlen)
459459
{
460460
// Count and measure interfaces
461461
InitControl(0);
462-
int interfaces = SendInterfaces();
462+
u8 interfaces = SendInterfaces();
463463
ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces);
464464

465465
// Now send them
@@ -469,7 +469,7 @@ bool SendConfiguration(int maxlen)
469469
return true;
470470
}
471471

472-
u8 _cdcComposite = 0;
472+
static u8 _cdcComposite = 0;
473473

474474
static
475475
bool SendDescriptor(USBSetup& setup)

0 commit comments

Comments
 (0)