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

@@ -123,11 +123,11 @@
 #endif
 
 static int
 bios_check_extension_present(uchar_t drivenum)
 {
-        struct bop_regs rp = {0};
+        struct bop_regs rp = {{0}};
         extern struct bootops           *bootops;
 
         rp.eax.word.ax = 0x4100;
         rp.ebx.word.bx = 0x55AA;
         rp.edx.word.dx = drivenum;

@@ -151,11 +151,11 @@
 }
 
 static int
 get_dev_params(uchar_t drivenum)
 {
-        struct bop_regs rp = {0};
+        struct bop_regs rp = {{0}};
         fn48_t   *bufp;
         extern struct bootops           *bootops;
         int i;
         int index;
         uchar_t *tmp;

@@ -203,11 +203,11 @@
 }
 
 static int
 drive_present(uchar_t drivenum)
 {
-        struct bop_regs rp = {0};
+        struct bop_regs rp = {{0}};
 
         rp.eax.byte.ah = 0x8;   /* get params */
         rp.edx.byte.dl = drivenum;
 
         BOP_DOINT(bootops, 0x13, &rp);

@@ -223,11 +223,11 @@
 }
 
 static void
 reset_disk(uchar_t drivenum)
 {
-        struct bop_regs rp = {0};
+        struct bop_regs rp = {{0}};
         int status;
 
         rp.eax.byte.ah = 0x0;   /* reset disk */
         rp.edx.byte.dl = drivenum;
 

@@ -243,11 +243,11 @@
 /* Get first block */
 static int
 read_firstblock(uchar_t drivenum)
 {
 
-        struct bop_regs rp = {0};
+        struct bop_regs rp = {{0}};
         caddr_t  bufp;
         uchar_t status;
         int i, index;
 
 

@@ -287,11 +287,11 @@
 }
 
 static int
 is_eltorito(uchar_t drivenum)
 {
-        struct bop_regs rp = {0};
+        struct bop_regs rp = {{0}};
         fn4b_t   *bufp;
         extern struct bootops           *bootops;
         int i;
 
         dprintf(("In is_eltorito\n"));