From 5efed1938a57c4c60579b952d30cb28e68561ad1 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 20 Apr 2015 00:55:04 +0200 Subject: [PATCH] Fixed: "warning: value computed is not used [-Wunused-value]" See: http://stackoverflow.com/questions/4347684/pointer-value-computed-is-not-used-in-c-function --- Usb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Usb.cpp b/Usb.cpp index cd1c3496..14272588 100644 --- a/Usb.cpp +++ b/Usb.cpp @@ -92,7 +92,7 @@ uint8_t USB::SetAddress(uint8_t addr, uint8_t ep, EpInfo **ppep, uint16_t *nak_l return USB_ERROR_EP_NOT_FOUND_IN_TBL; *nak_limit = (0x0001UL << (((*ppep)->bmNakPower > USB_NAK_MAX_POWER) ? USB_NAK_MAX_POWER : (*ppep)->bmNakPower)); - *nak_limit--; + (*nak_limit)--; /* USBTRACE2("\r\nAddress: ", addr); USBTRACE2(" EP: ", ep);