diff options
| author | Damien George <damien@micropython.org> | 2021-06-30 12:47:40 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-07-05 16:18:28 +1000 |
| commit | 031fe0f144e4bc37fc35d682cbb3bcffc79886b1 (patch) | |
| tree | 60e84a052a753cd738bb043a97df64d262c490b1 | |
| parent | d67bd494b5eca14b1e981e51b30580b1e7d07c43 (diff) | |
rp2/CMakeLists.txt: Suppress compiler errors for pico-sdk and tinyusb.
These warnings appear with GCC 11. Keep them as warnings but not as
compiler errors so they can be dealt with properly in the future.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/rp2/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/rp2/CMakeLists.txt b/ports/rp2/CMakeLists.txt index 2d6037712..eb2b3d2a2 100644 --- a/ports/rp2/CMakeLists.txt +++ b/ports/rp2/CMakeLists.txt @@ -188,6 +188,20 @@ target_compile_options(${MICROPY_TARGET} PRIVATE -Werror ) +set_source_files_properties( + ${PICO_SDK_PATH}/src/rp2_common/pico_double/double_math.c + ${PICO_SDK_PATH}/src/rp2_common/pico_float/float_math.c + PROPERTIES + COMPILE_OPTIONS "-Wno-error=uninitialized" +) + +set_source_files_properties( + ${PICO_TINYUSB_PATH}/src/portable/raspberrypi/rp2040/dcd_rp2040.c + ${PICO_TINYUSB_PATH}/src/portable/raspberrypi/rp2040/rp2040_usb.c + PROPERTIES + COMPILE_OPTIONS "-Wno-error=array-bounds;-Wno-error=unused-but-set-variable" +) + target_compile_definitions(${MICROPY_TARGET} PRIVATE FFCONF_H=\"${MICROPY_OOFATFS_DIR}/ffconf.h\" LFS1_NO_MALLOC LFS1_NO_DEBUG LFS1_NO_WARN LFS1_NO_ERROR LFS1_NO_ASSERT |
