Fixed "warning: no return statement in function returning non-void"

This commit is contained in:
Kristian Sloth Lauszus 2015-04-16 00:07:47 +02:00
parent 7e6a1de9dc
commit 3d5b46d055
3 changed files with 9 additions and 3 deletions

View file

@ -204,7 +204,7 @@ public:
uint8_t Poll();
bool available(void) {
return false;
};
virtual uint8_t GetAddress() {

View file

@ -80,9 +80,11 @@ class FTDIAsyncOper {
public:
virtual uint8_t OnInit(FTDI *pftdi) {
return 0;
};
virtual uint8_t OnRelease(FTDI *pftdi) {
return 0;
};
};

8
hid.h
View file

@ -156,7 +156,9 @@ protected:
void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr);
void PrintHidDescriptor(const USB_HID_DESCRIPTOR *pDesc);
virtual HIDReportParser* GetReportParser(uint8_t id) {};
virtual HIDReportParser* GetReportParser(uint8_t id) {
return NULL;
};
public:
@ -167,7 +169,9 @@ public:
return pUsb;
};
virtual bool SetReportParser(uint8_t id, HIDReportParser *prs) {};
virtual bool SetReportParser(uint8_t id, HIDReportParser *prs) {
return false;
};
uint8_t SetProtocol(uint8_t iface, uint8_t protocol);
uint8_t GetProtocol(uint8_t iface, uint8_t* dataptr);