diff --git a/edit/ChangeLog b/edit/ChangeLog index 73921710b..f3989e2b6 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,7 @@ +2004-12-02 Pavel S. Shirshov + + * editcmd.c (edit_replace_prompt): Fix warning with 'unused' label_len. + 2004-12-01 Roland Illig * editcmd.c: Introduced a type edit_getbyte_fn to get rid of diff --git a/edit/editcmd.c b/edit/editcmd.c index 1462660c9..254f6b674 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -1183,7 +1183,8 @@ edit_replace_prompt (WEdit * edit, char *replace_text, int xpos, int ypos) GString *label_text = g_string_new (_(" Replace with: ")); if (*replace_text) { - size_t label_len = label_text->len; + size_t label_len; + label_len = label_text->len; g_string_append (label_text, replace_text); convert_to_display (label_text->str + label_len); }