]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.c (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 05:28:41 +0000 (21:28 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 05:28:41 +0000 (21:28 -0800)
src/ChangeLog
src/coding.c

index 3a5a4c97628978f115aa45bb2bd378e3a5352ad3..1b518a6341cc844201d107cad215a4ce350a0538 100644 (file)
@@ -52,6 +52,7 @@
        * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
        * coding.c (emacs_mule_char, encode_invocation_designation):
        Now static, since they're not used elsewhere.
+       (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
 
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
index 4fdbd1fd7529ca27112a8ed8c0a95d09f1f19412..c9d324893511dbaea859a5fc26713af42000658d 100644 (file)
@@ -3899,6 +3899,10 @@ decode_coding_iso_2022 (struct coding_system *coding)
              }
              continue;
            }
+         break;
+
+       default:
+         abort ();
        }
 
       if (cmp_status->state == COMPOSING_NO