diff options
| author | hathach <[email protected]> | 2026-06-11 20:14:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-06-11 20:14:31 +0700 |
| commit | 4f5be18911c4d5dd4c3b097cb4ff18e2b7bf2543 (patch) | |
| tree | 7215ed281d513583e23d3056231cc689dacd8eb0 /examples/device/midi2_device | |
| parent | 264472e380bbca90aebabc6457fc53d372fcb66e (diff) | |
| parent | 629e805e08575398070d0a9ac2087a853c93d290 (diff) | |
Merge remote-tracking branch 'origin/master' into musb_ep0_race
# Conflicts:
# test/hil/hil_test.py
Diffstat (limited to 'examples/device/midi2_device')
| -rw-r--r-- | examples/device/midi2_device/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | examples/device/midi2_device/src/main.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/midi2_device/CMakeLists.txt b/examples/device/midi2_device/CMakeLists.txt index 295af6550..f1fe09db2 100644 --- a/examples/device/midi2_device/CMakeLists.txt +++ b/examples/device/midi2_device/CMakeLists.txt @@ -30,4 +30,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC family_configure_device_example(${PROJECT_NAME} noos) # Suppress pre-existing warning in usbd.c (uint8_t comparison always true/false) -target_compile_options(${PROJECT_NAME} PRIVATE -Wno-type-limits) +if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") + target_compile_options(${PROJECT_NAME} PRIVATE -Wno-type-limits) +endif() diff --git a/examples/device/midi2_device/src/main.c b/examples/device/midi2_device/src/main.c index 62741ac41..ce052a20b 100644 --- a/examples/device/midi2_device/src/main.c +++ b/examples/device/midi2_device/src/main.c @@ -715,6 +715,4 @@ int main(void) { } } } - - return 0; } |
