changeset 78560:44134c35ea57

Philippe Waroquiers <philippe.waroquiers at eurocontrol.int> (tty_default_color_capabilities): Explicitly initialize static variables in file scope, to avoid HPUX compiler problem.
author Glenn Morris <rgm@gnu.org>
date Wed, 15 Aug 2007 03:18:18 +0000
parents e4926b7ade50
children 87aed88462c4
files src/term.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Wed Aug 15 03:11:58 2007 +0000
+++ b/src/term.c	Wed Aug 15 03:18:18 2007 +0000
@@ -2169,15 +2169,19 @@
 
 #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)
     {