aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
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