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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/netinet/in.h
          +++ new/usr/src/uts/common/netinet/in.h
↓ open down ↓ 446 lines elided ↑ open up ↑
 447  447   * only. They need to be different for User/Kernel versions because union
 448  448   * component data structure is defined differently (it is identical at
 449  449   * binary representation level).
 450  450   *
 451  451   * const struct in6_addr IN6ADDR_ANY_INIT;
 452  452   * const struct in6_addr IN6ADDR_LOOPBACK_INIT;
 453  453   */
 454  454  
 455  455  
 456  456  #ifdef _KERNEL
 457      -#define IN6ADDR_ANY_INIT                { 0, 0, 0, 0 }
      457 +#define IN6ADDR_ANY_INIT                {{{ 0, 0, 0, 0 }}}
 458  458  
 459  459  #ifdef _BIG_ENDIAN
 460      -#define IN6ADDR_LOOPBACK_INIT           { 0, 0, 0, 0x00000001U }
      460 +#define IN6ADDR_LOOPBACK_INIT           {{{ 0, 0, 0, 0x00000001U }}}
 461  461  #else /* _BIG_ENDIAN */
 462      -#define IN6ADDR_LOOPBACK_INIT           { 0, 0, 0, 0x01000000U }
      462 +#define IN6ADDR_LOOPBACK_INIT           {{{ 0, 0, 0, 0x01000000U }}}
 463  463  #endif /* _BIG_ENDIAN */
 464  464  
 465  465  #else
 466  466  
 467      -#define IN6ADDR_ANY_INIT            {   0, 0, 0, 0,     \
      467 +#define IN6ADDR_ANY_INIT            {{{ 0, 0, 0, 0,     \
 468  468                                          0, 0, 0, 0,     \
 469  469                                          0, 0, 0, 0,     \
 470      -                                        0, 0, 0, 0 }
      470 +                                        0, 0, 0, 0 }}}
 471  471  
 472      -#define IN6ADDR_LOOPBACK_INIT       {   0, 0, 0, 0,     \
      472 +#define IN6ADDR_LOOPBACK_INIT       {{{ 0, 0, 0, 0,     \
 473  473                                          0, 0, 0, 0,     \
 474  474                                          0, 0, 0, 0,     \
 475      -                                        0, 0, 0, 0x1U }
      475 +                                        0, 0, 0, 0x1U }}}
 476  476  #endif /* _KERNEL */
 477  477  
 478  478  /*
 479  479   * RFC 2553 specifies the following macros. Their type is defined
 480  480   * as "int" in the RFC but they only have boolean significance
 481  481   * (zero or non-zero). For the purposes of our comment notation,
 482  482   * we assume a hypothetical type "bool" defined as follows to
 483  483   * write the prototypes assumed for macros in our comments better.
 484  484   *
 485  485   * typedef int bool;
↓ open down ↓ 843 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX