mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 20:00:53 +00:00
Merge branch 'bugfix/idf_py_disable_cmake_warnings_default_v4.0' into 'release/v4.0'
idf.py: disable cmake uninitialized variable warnings by default (v4.0) See merge request espressif/esp-idf!10203
This commit is contained in:
@@ -242,7 +242,7 @@ def _ensure_build_directory(args, always_run_cmake=False):
|
||||
"-DPYTHON_DEPS_CHECKED=1",
|
||||
"-DESP_PLATFORM=1",
|
||||
]
|
||||
if not args.no_warnings:
|
||||
if args.cmake_warn_uninitialized:
|
||||
cmake_args += ["--warn-uninitialized"]
|
||||
cmake_args += ["-DWARN_UNINITIALIZED=1"]
|
||||
|
||||
@@ -998,8 +998,10 @@ def init_cli():
|
||||
"default": None,
|
||||
},
|
||||
{
|
||||
"names": ["-n", "--no-warnings"],
|
||||
"help": "Disable Cmake warnings.",
|
||||
"names": ["-w/-n", "--cmake-warn-uninitialized/--no-warnings"],
|
||||
"help": ("Enable CMake uninitialized variable warnings for CMake files inside the project directory. "
|
||||
"(--no-warnings is now the default, and doesn't need to be specified.)"),
|
||||
"envvar": "IDF_CMAKE_WARN_UNINITIALIZED",
|
||||
"is_flag": True,
|
||||
"default": False,
|
||||
},
|
||||
|
Reference in New Issue
Block a user