fix print lu format warnings with clang

This commit is contained in:
hathach
2024-04-22 16:17:22 +07:00
parent 62331f0207
commit c097c85dcf
12 changed files with 24 additions and 24 deletions

View File

@@ -41,7 +41,7 @@ function(add_tinyusb TARGET)
${CMAKE_CURRENT_FUNCTION_LIST_DIR}/../lib/networking
)
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_options(${TARGET} PRIVATE
-Wall
-Wextra