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

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cscope-fast/input.c
          +++ new/usr/src/tools/cscope-fast/input.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright 2015 Gary Mills
  23   24   * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1988 AT&T */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  /*
  30   31   *      cscope - interactive C symbol cross-reference
  31   32   *
  32   33   *      terminal input functions
↓ open down ↓ 23 lines elided ↑ open up ↑
  56   57  {
  57   58          prevchar = c;
  58   59          return (0);
  59   60  }
  60   61  
  61   62  /* get a character from the terminal */
  62   63  
  63   64  int
  64   65  mygetch(void)
  65   66  {
  66      -        SIGTYPE (*savesig)();           /* old value of signal */
       67 +        SIGTYPE (*volatile savesig)() = SIG_DFL; /* old value of signal */
  67   68          int     c;
  68   69  
  69   70          /* change an interrupt signal to a break key character */
  70   71          if (setjmp(env) == 0) {
  71   72                  savesig = signal(SIGINT, catchint);
  72   73                  (void) refresh();       /* update the display */
  73   74                  reinitmouse();  /* curses can change the menu number */
  74   75                  if (prevchar) {
  75   76                          c = prevchar;
  76   77                          prevchar = 0;
↓ open down ↓ 167 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX