Skip to content

Commit

Permalink
[fix] Unused arguments when MACRO set
Browse files Browse the repository at this point in the history
  • Loading branch information
lpascal-ledger committed Oct 11, 2023
1 parent e8b56c4 commit 5513f41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib_stusb_impl/usbd_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,13 @@ uint8_t USBD_HID_DataIn_impl(USBD_HandleTypeDef *pdev, uint8_t epnum)

uint8_t USBD_HID_DataOut_impl(USBD_HandleTypeDef *pdev,
uint8_t epnum,
#ifndef HAVE_USB_HIDKBD
uint8_t *buffer,
apdu_buffer_t *apdu_buf)
#else
__attribute__((unused)) uint8_t *buffer,
__attribute__((unused)) apdu_buffer_t *apdu_buf )
#endif // HAVE_USB_HIDKBD
{
// only the data hid endpoint will receive data
switch (epnum) {
Expand Down

0 comments on commit 5513f41

Please sign in to comment.