Print this page
5396 gcc 4.8.2 longjmp errors for cscope-fast

@@ -24,14 +24,13 @@
 
 
 /*
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2015 Gary Mills
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  *      cscope - interactive C symbol cross-reference
  *
  *      display functions
  */

@@ -385,11 +384,11 @@
 BOOL
 search(void)
 {
         char    *egreperror = NULL;     /* egrep error message */
         FINDINIT rc = NOERROR;          /* findinit return code */
-        SIGTYPE (*savesig)();           /* old value of signal */
+        SIGTYPE (*volatile savesig)() = SIG_DFL; /* old value of signal */
         FP      f;                      /* searching function */
         char    *s;
         int     c;
 
         /* note: the pattern may have been a cscope argument */