diff options
| author | Ha Thach <[email protected]> | 2022-06-29 11:39:05 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-29 11:39:05 +0700 |
| commit | 3681ad2941c0da0cd03d0c36860622dc441457d3 (patch) | |
| tree | b16f4c7791aa17fa116b9f0a59ae0c1f43d494b6 /examples/example.cmake | |
| parent | c7fce32dffd0d6e6c94f030b037d476e16744153 (diff) | |
| parent | 898b52be45f476d7062d50fed722d92f0dccf4ae (diff) | |
Merge pull request #1521 from kilograham/rp2040_warning
Re-add some warning suppression for rp2040
Diffstat (limited to 'examples/example.cmake')
| -rw-r--r-- | examples/example.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/example.cmake b/examples/example.cmake index 6bb82a56d..3e395d53f 100644 --- a/examples/example.cmake +++ b/examples/example.cmake @@ -21,5 +21,11 @@ target_compile_options(${PROJECT} PUBLIC -Wuninitialized -Wunused -Wredundant-decls + ) + +# GCC version 9 or prior has a bug with incorrect Wconversion warnings +if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0) + target_compile_options(${PROJECT} PUBLIC -Wconversion ) +endif() |
