esp-idf/tools/cmake
Marc Finet 9456c157ff feat(build): Add config to disable warn be considered as errors
The -Werror=all activates error for all warnings in -Wall, however, it
does not activate error for other default warnings, such as:
- int-conversion (pointer from integer w/o a cast)
- incompatible-pointer-types
- discarded-qualifiers

Which are IMO even more important that -Wall.

This commit fixes that by activating error for all warnings (i.e. from
-Wall and default ones) and removing those from -Wextra, as the culprit
commit seemed to address.

Fixes: 60f29236f6 "Build system: Raise warning level" (2016-11-16)

In order to avoid long analysis during esp-idf upgrade, provide a way to
restore the previous -Werror=all behavior that consider only warnings
from -Wall (and not default ones).

Also add a hint to use the Kconfig option on compilation error, but warn
that fixing the code is the preferred way.

Merges https://github.com/espressif/esp-idf/pull/11239

Suggested-By: Ivan Grokhotkov <ivan@espressif.com>
2024-06-20 14:43:26 +08:00
..
scripts Merge branch 'bugfix/macos_build_linux_target_misc' into 'master' 2023-12-21 17:55:24 +08:00
third_party build system: more accurate error information for git_describe 2023-05-23 18:30:01 +02:00
build.cmake feat(build): Add config to disable warn be considered as errors 2024-06-20 14:43:26 +08:00
component_deps.dot.in G0: add a build example to check G0 dependencies 2022-06-14 15:00:53 +08:00
component.cmake fix: component manager load all component dirs even set(COMPONENTS ...) 2024-03-19 19:52:20 +08:00
depgraph.cmake cmake: add component dependency graph generation helpers 2021-12-02 15:29:00 +01:00
dfu.cmake feat(esp32c61): introduce target esp32c61 2024-03-01 21:12:25 +08:00
git_submodules.cmake feat(tools): Improves a cmake message for updating git submodules 2023-12-12 16:00:04 +08:00
idf.cmake feat(tools): move uf2 generation to esptool 2023-10-09 15:38:30 +02:00
kconfig.cmake feat(tools/kconfig): add initial and current versions of IDF to kconfig 2023-07-10 17:01:51 +02:00
ldgen.cmake build-system: replace ADDITIONAL_MAKE_CLEAN_FILES with ADDITIONAL_CLEAN_FILES 2023-05-08 15:51:48 +08:00
project_description.json.in feat(tools): export information about all components in __COMPONENT_TARGETS 2023-10-02 15:52:58 +02:00
project.cmake fix(system): print warning if stray section is found while linking 2024-05-17 13:37:42 +04:00
run_dfu_util.cmake tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
run_size_tool.cmake feat: add diff option support to idf.py size commands 2024-05-24 15:19:37 +08:00
targets.cmake tools: fix custom sdkconfig renaming in set-target 2023-03-08 16:45:55 +01:00
tool_version_check.cmake tools: cmake: check tool supported version with idf_tools.py 2022-10-03 19:01:32 +04:00
toolchain-clang-esp32.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32c2.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32c3.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32c5.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32c6.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32c61.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32h2.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32h4.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32p4.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32s2.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-clang-esp32s3.cmake feat(tools): Update Clang version to esp-17.0.1_20240419 2024-05-03 16:55:13 +03:00
toolchain-esp32.cmake fix(tools): do not use builtin memcpy/memset/strcpy on xtensa chips 2024-02-27 02:09:54 +08:00
toolchain-esp32c2.cmake tools: add riscv zicsr/zifencei because they were separated from i 2023-02-22 05:33:03 +00:00
toolchain-esp32c3.cmake tools: add riscv zicsr/zifencei because they were separated from i 2023-02-22 05:33:03 +00:00
toolchain-esp32c5.cmake feat(esp32c5): add esp32c5 target in kconfig and tools 2023-11-28 16:14:17 +08:00
toolchain-esp32c6.cmake tools: add riscv zicsr/zifencei because they were separated from i 2023-02-22 05:33:03 +00:00
toolchain-esp32c61.cmake feat(esp32c61): introduce target esp32c61 2024-03-01 21:12:25 +08:00
toolchain-esp32h2.cmake tools: change esp32h2 march to rv32imac_zicsr_zifencei 2023-02-22 05:33:03 +00:00
toolchain-esp32p4.cmake feat(tools): update toolchain version to esp-13.2.0_20240305 2024-03-15 12:35:09 +04:00
toolchain-esp32s2.cmake fix(tools): do not use builtin memcpy/memset/strcpy on xtensa chips 2024-02-27 02:09:54 +08:00
toolchain-esp32s3.cmake fix(tools): do not use builtin memcpy/memset/strcpy on xtensa chips 2024-02-27 02:09:54 +08:00
toolchain-linux.cmake build system: don't add GCC-specific options when building with clang 2021-01-24 12:48:29 +01:00
utilities.cmake tools: fix make_json_list to return empty json list for empty cmake list 2023-05-30 12:07:20 +02:00
version.cmake change(version): Update version to v5.4-dev 2024-04-22 22:43:44 +02:00