diff --git a/CMakeLists.txt b/CMakeLists.txt index a36195a..c9c3b25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,7 +148,10 @@ if(NOT ESP_PLATFORM) ) target_compile_options(pico_fido PRIVATE ${COMMON_COMPILE_OPTIONS}) - pico_keys_apply_strict_flags(SOURCES ${SOURCES}) + pico_keys_apply_strict_flags( + SOURCES ${SOURCES} + FILTER_REGEX "/src/fido/|/pico-keys-sdk/src/|/pico-keys-sdk/config/" + ) if(NOT MSVC) string(FIND ${CMAKE_C_COMPILER} ":" COMPILER_COLON) diff --git a/pico-keys-sdk b/pico-keys-sdk index e5079e5..94ab2cc 160000 --- a/pico-keys-sdk +++ b/pico-keys-sdk @@ -1 +1 @@ -Subproject commit e5079e510f5dd5814e6964178af88a5e69dcc0c7 +Subproject commit 94ab2ccef750848fe0f58bcfb90f74570818d48e diff --git a/src/fido/otp.c b/src/fido/otp.c index dd2ded3..cf49e02 100644 --- a/src/fido/otp.c +++ b/src/fido/otp.c @@ -642,6 +642,7 @@ static int otp_send_frame(uint8_t *frame, size_t frame_len) { static int otp_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t report_type, uint8_t const *buffer, uint16_t bufsize) { (void)itf; (void)report_id; + (void)bufsize; if (report_type == 3) { DEBUG_PAYLOAD(buffer, bufsize); if (buffer[7] == 0xFF) { // reset