Skip to content

Commit

Permalink
[fix] UNUSED macro
Browse files Browse the repository at this point in the history
  • Loading branch information
lpascal-ledger committed Oct 11, 2023
1 parent 25447e8 commit 1991b31
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ DEFINES += HAVE_IO_USB HAVE_L4_USBLIB IO_USB_MAX_ENDPOINTS=4 IO_HID_EP_LENGTH=64
DEFINES += MAX_METADATAS=4096 MAX_METANAME=20
DEFINES += USE_CTAES
DEFINES += HAVE_WEBUSB WEBUSB_URL_SIZE_B=0 WEBUSB_URL=""
DEFINES += UNUSED\(x\)=\(void\)x
DEFINES += HAVE_SPRINTF

TESTING ?= 0
Expand Down
4 changes: 1 addition & 3 deletions src/keyboards/bolos_ux_nanos_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ const bagl_element_t* screen_common_keyboard_before_element_display_callback(
}

unsigned int screen_common_keyboard_button(unsigned int button_mask,
unsigned int button_mask_counter) {
UNUSED(button_mask_counter);

unsigned int button_mask_counter __attribute__((unused))) {
switch (button_mask) {
case BUTTON_EVT_RELEASED | BUTTON_LEFT | BUTTON_RIGHT: // validate current digit

Expand Down
3 changes: 1 addition & 2 deletions src/keyboards/bolos_ux_nanox_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ const bagl_element_t* screen_common_keyboard_before_element_display_callback(
}

unsigned int screen_common_keyboard_button(unsigned int button_mask,
unsigned int button_mask_counter) {
UNUSED(button_mask_counter);
unsigned int button_mask_counter __attribute__((unused))) {

switch (button_mask) {
case BUTTON_EVT_RELEASED | BUTTON_LEFT | BUTTON_RIGHT: // validate current digit
Expand Down

0 comments on commit 1991b31

Please sign in to comment.