aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2022-04-08 17:00:20 -0700
committerPaul Eggert2022-04-08 17:33:16 -0700
commit68bc1446855c86b96d5bc22f819e63358ab250ac (patch)
treeeef98760d333963f8d62109280ec59784aa02441 /src/coding.c
parentd9bffa1f3b121085fd8f954eb9446a4a5241c062 (diff)
downloademacs-68bc1446855c86b96d5bc22f819e63358ab250ac.tar.gz
emacs-68bc1446855c86b96d5bc22f819e63358ab250ac.zip
Pacify clang -Wunused-variable
* src/coding.c (detect_coding_utf_8): * src/process.c (Finternal_default_process_filter): Remove unused local vars.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/coding.c b/src/coding.c
index c16598d275d..2bed293d571 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1131,7 +1131,6 @@ detect_coding_utf_8 (struct coding_system *coding,
1131 ptrdiff_t consumed_chars = 0; 1131 ptrdiff_t consumed_chars = 0;
1132 bool bom_found = 0; 1132 bool bom_found = 0;
1133 ptrdiff_t nchars = coding->head_ascii; 1133 ptrdiff_t nchars = coding->head_ascii;
1134 int eol_seen = coding->eol_seen;
1135 1134
1136 detect_info->checked |= CATEGORY_MASK_UTF_8; 1135 detect_info->checked |= CATEGORY_MASK_UTF_8;
1137 /* A coding system of this category is always ASCII compatible. */ 1136 /* A coding system of this category is always ASCII compatible. */
@@ -1161,15 +1160,10 @@ detect_coding_utf_8 (struct coding_system *coding,
1161 { 1160 {
1162 if (src < src_end && *src == '\n') 1161 if (src < src_end && *src == '\n')
1163 { 1162 {
1164 eol_seen |= EOL_SEEN_CRLF;
1165 src++; 1163 src++;
1166 nchars++; 1164 nchars++;
1167 } 1165 }
1168 else
1169 eol_seen |= EOL_SEEN_CR;
1170 } 1166 }
1171 else if (c == '\n')
1172 eol_seen |= EOL_SEEN_LF;
1173 continue; 1167 continue;
1174 } 1168 }
1175 ONE_MORE_BYTE (c1); 1169 ONE_MORE_BYTE (c1);