diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-10 11:02:59 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-04-10 11:02:59 -0700 |
commit | 785bbd422461295890087ced24bfd87504032d0c (patch) | |
tree | a07c7a57741781beebe0d61e65269ddeb1d3ba09 /src | |
parent | b2ded58d7e0eb75f00071036d1c07bbd55313b60 (diff) |
* editfns.c (Fformat): Remove unreachable code.
2011-04-10 Paul Eggert <eggert@cs.ucla.edu>
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/editfns.c | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6d30087551..58df7e0895 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2011-04-10 Paul Eggert <eggert@cs.ucla.edu> + * editfns.c (Fformat): Remove unreachable code. + +2011-04-10 Paul Eggert <eggert@cs.ucla.edu> + Fix more problems found by GCC 4.6.0's static checks. * xdisp.c (vmessage): Use a better test for character truncation. diff --git a/src/editfns.c b/src/editfns.c index e754a074ba..85b30de697 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3802,7 +3802,7 @@ usage: (format STRING &rest OBJECTS) */) if (*format == 'c') { if (! ASCII_CHAR_P (XINT (args[n])) - /* Note: No one can remeber why we have to treat + /* Note: No one can remember why we have to treat the character 0 as a multibyte character here. But, until it causes a real problem, let's don't change it. */ @@ -3816,12 +3816,6 @@ usage: (format STRING &rest OBJECTS) */) args[n] = Fchar_to_string (args[n]); thissize = SBYTES (args[n]); } - else if (! ASCII_BYTE_P (XINT (args[n])) && multibyte) - { - args[n] - = Fchar_to_string (Funibyte_char_to_multibyte (args[n])); - thissize = SBYTES (args[n]); - } } } else if (FLOATP (args[n]) && *format != 's') |