]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 65739] Add warning circular-dep.
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 19 May 2024 22:56:12 +0000 (18:56 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 4 Aug 2024 19:21:59 +0000 (15:21 -0400)
commita9e3eb1eecb595320147884af08fe95be546af33
tree5e6b6c1e84d908d785e40b1409e99bfc00fe29ea
parente3f938caf893f485c9216e26a4f48731fccc43a8
[SV 65739] Add warning circular-dep.

Add a warning to control circular dependency detection.  Use "warn" as
the default action to be backward-compatible.

* src/warning.h (enum warning_type): Add warning type wt_circular_dep.
* src/warning.c (warn_init): Set default wt_circular_dep to w_warn.
* src/remake.c (update_file_1): Consult the circular-dep warning to
handle circular dependencies.
* tests/scripts/options/warn: Test --warn circular-dep flag.
* tests/scripts/variables/WARNINGS: Test .WARNINGS circular-dep flag.
* doc/make.texi: Document circular-dep warning.
* doc/make.1: Ditto.
NEWS
doc/make.1
doc/make.texi
src/remake.c
src/warning.c
src/warning.h
tests/scripts/options/warn
tests/scripts/variables/WARNINGS