* edit.c (edit_execute_cmd): Fool gcc to prevent Y2K warning.

This commit is contained in:
Pavel Roskin 2002-11-13 02:05:01 +00:00
parent e3bc0b2b86
commit 2b9d151923
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2002-11-12 Pavel Roskin <proski@gnu.org>
* edit.c (edit_execute_cmd): Fool gcc to prevent Y2K warning.
* editwidget.c (edit_adjust_size): Use find_buttonbar().
2002-11-11 Pavel Roskin <proski@gnu.org>

View File

@ -2427,7 +2427,9 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion)
time_t t;
#ifdef HAVE_STRFTIME
char s[1024];
static const char time_format[] = "%c";
/* fool gcc to prevent a Y2K warning */
char time_format[] = "_c";
time_format[0] = '%';
#endif
time (&t);
#ifdef HAVE_STRFTIME