]> git.eshelyaron.com Git - emacs.git/commit
Pacify gcc -Wswitch-enum in bidi.c
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 8 Feb 2025 23:56:04 +0000 (15:56 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Feb 2025 10:42:15 +0000 (11:42 +0100)
commit45c844f39fe1d1b0ac0ed4ee71453f5ad26dfc15
tree0e26553da75f48c45388aeb0d60083f1fed25869
parentf2b35df0280f1ef885db3cd242085ceef5a370ca
Pacify gcc -Wswitch-enum in bidi.c

* src/bidi.c (bidi_get_type, bidi_resolve_explicit)
(bidi_find_bracket_pairs, bidi_resolve_brackets)
(bidi_resolve_neutral): Use ‘switch (INT_PROMOTE (E))’
to indicate that it’s intended that we not enumerate all the enum
values.

(cherry picked from commit 467a88394f8d7fe545bd236586a9a3ed991ab9dc)
src/bidi.c