Hi Nathan, I now get:
../../repos/gcc/libcpp/init.c:670:15: error: unused variable ‘deps’ [-Werror=unused-variable] 670 | if (mkdeps *deps = cpp_get_deps (pfile)) | ^~~~ see last three lines of the quoted patch below. Tobias On 03.11.20 14:02, Nathan Sidwell wrote:
cpp_read_main_file (cpp_reader *pfile, const char *fname, bool injecting) { - if (CPP_OPTION (pfile, deps.style) != DEPS_NONE) - { - if (!pfile->deps) - pfile->deps = deps_init (); - - /* Set the default target (if there is none already). */ - deps_add_default_target (pfile->deps, fname); - } + if (mkdeps *deps = cpp_get_deps (pfile)) + /* Set the default target (if there is none already). */ + deps_add_default_target (pfile->deps, fname);
----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter