]> git.ipfire.org Git - thirdparty/automake.git/commit
maint: sync autoconf Channels.pm and ChannelsDefs.pm.
authorZack Weinberg <zack@owlfolio.org>
Fri, 22 Dec 2023 23:52:26 +0000 (15:52 -0800)
committerKarl Berry <karl@freefriends.org>
Fri, 22 Dec 2023 23:52:26 +0000 (15:52 -0800)
commit352d5f6f86d01da65f8828aab7f0682cfb643fbb
tree1581b6f7ef5032eb494393b97afbf55281a17b47
parent3cc3e282a00bf6aa1bf13974d2eeb72f89093b7a
maint: sync autoconf Channels.pm and ChannelsDefs.pm.

Patch from https://bugs.gnu.org/67971.

The changes address <https://savannah.gnu.org/support/?110872>,
about m4_warn code/documentation consistency.
It should be impossible to reach report_bad_channel from code in
Automake.

* lib/Automake/Channels.pm (msg): If the channel argument is invalid,
don't crash; report the mistake and use the `syntax' channel.
(report_bad_channel): New function for reporting invalid channels.

* lib/Automake/ChannelDefs.pm (usage): Clarify that the list of
warning categories is exhaustive, and that ``all'', ``none'',
``no-CATEGORY'', and ``error'' are not warning categories.
lib/Automake/ChannelDefs.pm
lib/Automake/Channels.pm