Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/sig.c
          +++ new/usr/src/uts/common/os/sig.c
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55  #include <sys/bitmap.h>
  56   56  #include <c2/audit.h>
  57   57  #include <sys/core.h>
  58   58  #include <sys/schedctl.h>
  59   59  #include <sys/contract/process_impl.h>
  60   60  #include <sys/cyclic.h>
  61   61  #include <sys/dtrace.h>
  62   62  #include <sys/sdt.h>
  63   63  #include <sys/signalfd.h>
  64   64  
  65      -const k_sigset_t nullsmask = {0, 0, 0};
       65 +const k_sigset_t nullsmask = {{0, 0, 0}};
  66   66  
  67      -const k_sigset_t fillset =      /* MUST be contiguous */
  68      -        {FILLSET0, FILLSET1, FILLSET2};
       67 +const k_sigset_t fillset = {    /* MUST be contiguous */
       68 +        {FILLSET0, FILLSET1, FILLSET2}};
  69   69  
  70      -const k_sigset_t cantmask =
  71      -        {CANTMASK0, CANTMASK1, CANTMASK2};
       70 +const k_sigset_t cantmask = {
       71 +        {CANTMASK0, CANTMASK1, CANTMASK2}};
  72   72  
  73      -const k_sigset_t cantreset =
  74      -        {(sigmask(SIGILL)|sigmask(SIGTRAP)|sigmask(SIGPWR)), 0, 0};
       73 +const k_sigset_t cantreset = {
       74 +        {(sigmask(SIGILL)|sigmask(SIGTRAP)|sigmask(SIGPWR)), 0, 0}};
  75   75  
  76      -const k_sigset_t ignoredefault =
       76 +const k_sigset_t ignoredefault = {
  77   77          {(sigmask(SIGCONT)|sigmask(SIGCLD)|sigmask(SIGPWR)
  78   78          |sigmask(SIGWINCH)|sigmask(SIGURG)|sigmask(SIGWAITING)),
  79   79          (sigmask(SIGLWP)|sigmask(SIGCANCEL)|sigmask(SIGFREEZE)
  80   80          |sigmask(SIGTHAW)|sigmask(SIGXRES)|sigmask(SIGJVM1)
  81      -        |sigmask(SIGJVM2)|sigmask(SIGINFO)), 0};
       81 +        |sigmask(SIGJVM2)|sigmask(SIGINFO)), 0}};
  82   82  
  83      -const k_sigset_t stopdefault =
       83 +const k_sigset_t stopdefault = {
  84   84          {(sigmask(SIGSTOP)|sigmask(SIGTSTP)|sigmask(SIGTTOU)|sigmask(SIGTTIN)),
  85      -        0, 0};
       85 +        0, 0}};
  86   86  
  87      -const k_sigset_t coredefault =
       87 +const k_sigset_t coredefault = {
  88   88          {(sigmask(SIGQUIT)|sigmask(SIGILL)|sigmask(SIGTRAP)|sigmask(SIGIOT)
  89   89          |sigmask(SIGEMT)|sigmask(SIGFPE)|sigmask(SIGBUS)|sigmask(SIGSEGV)
  90      -        |sigmask(SIGSYS)|sigmask(SIGXCPU)|sigmask(SIGXFSZ)), 0, 0};
       90 +        |sigmask(SIGSYS)|sigmask(SIGXCPU)|sigmask(SIGXFSZ)), 0, 0}};
  91   91  
  92      -const k_sigset_t holdvfork =
  93      -        {(sigmask(SIGTTOU)|sigmask(SIGTTIN)|sigmask(SIGTSTP)), 0, 0};
       92 +const k_sigset_t holdvfork = {
       93 +        {(sigmask(SIGTTOU)|sigmask(SIGTTIN)|sigmask(SIGTSTP)), 0, 0}};
  94   94  
  95   95  static  int     isjobstop(int);
  96   96  static  void    post_sigcld(proc_t *, sigqueue_t *);
  97   97  
  98   98  
  99   99  /*
 100  100   * signalfd helper function which is set when the signalfd driver loads.
 101  101   */
 102  102  void (*sigfd_exit_helper)();
 103  103  
↓ open down ↓ 2786 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX