From fcf8ff2e2eb9cd9f54e4bcaeb36dc0beb0addc6b Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 15 Aug 2007 03:20:17 +0000 Subject: [PATCH] Philippe Waroquiers (tty_default_color_capabilities): Explicitly initialize static variables in file scope, to avoid HPUX compiler problem. --- src/ChangeLog | 5 +++++ src/term.c | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e3c212924b3..0ae50d2fa67 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-08-15 Philippe Waroquiers + + * term.c (tty_default_color_capabilities): Explicitly initialize + static variables in file scope, to avoid HPUX compiler problem. + 2007-08-13 Jan Dj,Ad(Brv * gtkutil.c (update_frame_tool_bar): Use -1 as index diff --git a/src/term.c b/src/term.c index 798fc37ca46..624e1c82edd 100644 --- a/src/term.c +++ b/src/term.c @@ -2238,15 +2238,19 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells, #ifndef WINDOWSNT +static int default_max_colors = 0; +static int default_max_pairs = 0; +static int default_no_color_video = 0; +static char *default_orig_pair = NULL; +static char *default_set_foreground = NULL; +static char *default_set_background = NULL; + /* Save or restore the default color-related capabilities of this terminal. */ static void tty_default_color_capabilities (save) int save; { - static char - *default_orig_pair, *default_set_foreground, *default_set_background; - static int default_max_colors, default_max_pairs, default_no_color_video; if (save) { -- 2.39.2