diff options
| author | Ha Thach <[email protected]> | 2022-07-14 21:53:34 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-14 21:53:34 +0700 |
| commit | 868f2bcda092b0b8d5f7ac55ffaef2c81316d35e (patch) | |
| tree | 3ed2212ab6057783b3d60672f6d1ff688dc62064 /examples/example.cmake | |
| parent | 1a8c3a863bb1d172364ffe80029620fa75efc7a4 (diff) | |
| parent | 7e4c0f64cd32ee0c73da37703dda2f83ed760132 (diff) | |
Merge pull request #1554 from kilograham/rp2040_warning2
Rework CMake example warnings some more
Diffstat (limited to 'examples/example.cmake')
| -rw-r--r-- | examples/example.cmake | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/example.cmake b/examples/example.cmake deleted file mode 100644 index 6b5e41dd9..000000000 --- a/examples/example.cmake +++ /dev/null @@ -1,32 +0,0 @@ -target_compile_options(${PROJECT} PUBLIC - -Wall - -Wextra - -Werror - -Wfatal-errors - -Wdouble-promotion - -Wfloat-equal - -Wshadow - -Wwrite-strings - -Wsign-compare - -Wmissing-format-attribute - -Wunreachable-code - -Wcast-align - -Wcast-qual - -Wnull-dereference - -Wuninitialized - -Wunused - -Wredundant-decls - #-Wstrict-prototypes - #-Werror-implicit-function-declaration - #-Wundef - ) - -# GCC 10 -if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0) - target_compile_options(${PROJECT} PUBLIC -Wconversion) -endif() - -# GCC 8 -if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) - target_compile_options(${PROJECT} PUBLIC -Wcast-function-type -Wstrict-overflow) -endif() |
