summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSean Cross <[email protected]>2020-05-07 19:00:41 +0800
committerSean Cross <[email protected]>2020-05-07 19:03:40 +0800
commit63bd8d2e44225341caae6dafb2affb1fe711a9b4 (patch)
treedac2e23ffe2c55335d9131928785498c50d48d61 /src/common
parenta74a823b0a140667a4e4e80fa2678870faba2bd0 (diff)
device: fix build warning when CFG_TUSB_DEBUG >= 2
The function is defined inside of a function body which generates a warning. Circuit Python treats these warnings as errors, and so refuses to build with debugging enabled: ../../lib/tinyusb/src/device/usbd_control.c: In function 'usbd_control_xfer_cb': ../../lib/tinyusb/src/device/usbd_control.c:195:19: error: nested extern declaration of 'usbd_driver_print_control_complete_name' [-Werror=nested-externs] 195 | extern void usbd_driver_print_control_complete_name(bool (*control_complete) (uint8_t, tusb_control_request_t const *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [../../py/mkrules.mk:55: build-simmel/lib/tinyusb/src/device/usbd_control.o] Error 1 Move the declaration to the top of the function to silence this warning. Signed-off-by: Sean Cross <[email protected]>
Diffstat (limited to 'src/common')
0 files changed, 0 insertions, 0 deletions