aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2023-01-19 15:15:52 -0800
committerPaul Eggert2023-01-19 19:07:33 -0800
commit167bf3408e437704b27171c6fad5d15bbc623b3a (patch)
treee1e16bd25ae95f4016f434ec2e215ed1eff1a99f /src/coding.c
parent54d5ea66c99f03240379d6d2e411145cced585a5 (diff)
downloademacs-167bf3408e437704b27171c6fad5d15bbc623b3a.tar.gz
emacs-167bf3408e437704b27171c6fad5d15bbc623b3a.zip
Pacify clang 15.0.6 on Fedora 37
* configure.ac: Suppress clang -Wbitwise-instead-of-logical, as there’s nothing wrong with using & and | on bool. * src/coding.c: Suppress -Wunused-but-set-variable in this file, as it’s too much trouble to recode to pacify clang.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 49dcd8634f3..79461addd1a 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -651,6 +651,12 @@ growable_destination (struct coding_system *coding)
651 consumed_chars++; \ 651 consumed_chars++; \
652 } while (0) 652 } while (0)
653 653
654/* Suppress clang warnings about consumed_chars never being used.
655 Although correct, the warnings are too much trouble to code around. */
656#if 13 <= __clang_major__
657# pragma clang diagnostic ignored "-Wunused-but-set-variable"
658#endif
659
654/* Safely get two bytes from the source text pointed by SRC which ends 660/* Safely get two bytes from the source text pointed by SRC which ends
655 at SRC_END, and set C1 and C2 to those bytes while skipping the 661 at SRC_END, and set C1 and C2 to those bytes while skipping the
656 heading multibyte characters. If there are not enough bytes in the 662 heading multibyte characters. If there are not enough bytes in the