summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-22 16:17:22 +0700
committerhathach <[email protected]>2024-04-22 16:17:22 +0700
commitc097c85dcf8e0ef3ea052c146c5f514101827251 (patch)
tree1a0956149ddd6f9967ced1ef2609ab2afa3c9a2d /src/CMakeLists.txt
parent62331f02070bdb1bec2890885008e9f88b06bdb6 (diff)
fix print lu format warnings with clang
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 076e1e1eb..272962332 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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