diff options
| author | Paul Eggert | 2011-03-07 21:28:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-07 21:28:41 -0800 |
| commit | 413bb2db753528a2e4bd70f8bbabcd232b11b6d7 (patch) | |
| tree | 0a1d99a468969b4d22fa3265079303b45a0a4c7d | |
| parent | e2f1bab96318b2809aad624ee9bbbdfd7fd6dd6e (diff) | |
| download | emacs-413bb2db753528a2e4bd70f8bbabcd232b11b6d7.tar.gz emacs-413bb2db753528a2e4bd70f8bbabcd232b11b6d7.zip | |
* coding.c (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/coding.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3a5a4c97628..1b518a6341c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -52,6 +52,7 @@ | |||
| 52 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. | 52 | * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise. |
| 53 | * coding.c (emacs_mule_char, encode_invocation_designation): | 53 | * coding.c (emacs_mule_char, encode_invocation_designation): |
| 54 | Now static, since they're not used elsewhere. | 54 | Now static, since they're not used elsewhere. |
| 55 | (decode_coding_iso_2022): Add "default: abort ();" as a safety check. | ||
| 55 | 56 | ||
| 56 | 2011-03-06 Chong Yidong <cyd@stupidchicken.com> | 57 | 2011-03-06 Chong Yidong <cyd@stupidchicken.com> |
| 57 | 58 | ||
diff --git a/src/coding.c b/src/coding.c index 4fdbd1fd752..c9d32489351 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -3899,6 +3899,10 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 3899 | } | 3899 | } |
| 3900 | continue; | 3900 | continue; |
| 3901 | } | 3901 | } |
| 3902 | break; | ||
| 3903 | |||
| 3904 | default: | ||
| 3905 | abort (); | ||
| 3902 | } | 3906 | } |
| 3903 | 3907 | ||
| 3904 | if (cmp_status->state == COMPOSING_NO | 3908 | if (cmp_status->state == COMPOSING_NO |