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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/brand.c
          +++ new/usr/src/uts/common/os/brand.c
↓ open down ↓ 895 lines elided ↑ open up ↑
 896  896                  auxflags_auxv32.a_un.a_val |= AF_SUN_NOPLM;
 897  897                  if (copyout(&auxflags_auxv32, args->auxp_auxflags,
 898  898                      sizeof (auxflags_auxv32)) != 0)
 899  899                          return (EFAULT);
 900  900          }
 901  901  #endif  /* _LP64 */
 902  902  
 903  903          /* Second, copy out the brand specific aux vectors. */
 904  904          if (args->to_model == DATAMODEL_NATIVE) {
 905  905                  auxv_t brand_auxv[] = {
 906      -                    { AT_SUN_BRAND_AUX1, 0 },
 907      -                    { AT_SUN_BRAND_AUX2, 0 },
 908      -                    { AT_SUN_BRAND_AUX3, 0 }
      906 +                    { AT_SUN_BRAND_AUX1, {0} },
      907 +                    { AT_SUN_BRAND_AUX2, {0} },
      908 +                    { AT_SUN_BRAND_AUX3, {0} }
 909  909                  };
 910  910  
 911  911                  ASSERT(brand_auxv[0].a_type ==
 912  912                      AT_SUN_BRAND_COMMON_LDDATA);
 913  913                  brand_auxv[0].a_un.a_val = sed.sed_lddata;
 914  914  
 915  915                  if (copyout(&brand_auxv, args->auxp_brand,
 916  916                      sizeof (brand_auxv)) != 0)
 917  917                          return (EFAULT);
 918  918          }
 919  919  #if defined(_LP64)
 920  920          else {
 921  921                  auxv32_t brand_auxv32[] = {
 922      -                    { AT_SUN_BRAND_AUX1, 0 },
 923      -                    { AT_SUN_BRAND_AUX2, 0 },
 924      -                    { AT_SUN_BRAND_AUX3, 0 }
      922 +                    { AT_SUN_BRAND_AUX1, {0} },
      923 +                    { AT_SUN_BRAND_AUX2, {0} },
      924 +                    { AT_SUN_BRAND_AUX3, {0} }
 925  925                  };
 926  926  
 927  927                  ASSERT(brand_auxv32[0].a_type == AT_SUN_BRAND_COMMON_LDDATA);
 928  928                  brand_auxv32[0].a_un.a_val = (uint32_t)sed.sed_lddata;
 929  929                  if (copyout(&brand_auxv32, args->auxp_brand,
 930  930                      sizeof (brand_auxv32)) != 0)
 931  931                          return (EFAULT);
 932  932          }
 933  933  #endif  /* _LP64 */
 934  934  
↓ open down ↓ 215 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX