@@ -975,24 +1122,22 @@ typedef union _CDB {
     UCHAR CMSF:1;
     UCHAR ExpectedSectorType:3;
     UCHAR Lun:3;
-    struct _LBA {
-      UCHAR StartingBlockAddress[4];
-      UCHAR PlayLength[4];
-    };
-    struct _MSF {
-      UCHAR Reserved1;
-      UCHAR StartingM;
-      UCHAR StartingS;
-      UCHAR StartingF;
-      UCHAR EndingM;
-      UCHAR EndingS;
-      UCHAR EndingF;
-      UCHAR Reserved2;
-    };
     _ANONYMOUS_UNION union {
-      struct _LBA LBA;
-      struct _MSF MSF;
-    } DUMMYUNIONNAME;
+      struct _LBA {
+        UCHAR StartingBlockAddress[4];
+        UCHAR PlayLength[4];
+      } LBA;
+      struct _MSF {
+        UCHAR Reserved1;
+        UCHAR StartingM;
+        UCHAR StartingS;
+        UCHAR StartingF;
+        UCHAR EndingM;
+        UCHAR EndingS;
+        UCHAR EndingF;
+        UCHAR Reserved2;
+      } MSF;
+    };
     UCHAR Audio:1;
     UCHAR Composite:1;
     UCHAR Port1:1;

Please don't - this re-introduces an already fixed issue, see
https://sourceforge.net/p/mingw-w64/mingw-w64/ci/a66e407efbadeeca6a0bdb4fd7b39a6f8275958f

scsi.h:1126:14: error: 'struct _CDB::_PLAY_CD::<unnamed union>::_LBA'
invalid; an anonymous union may only have public non-static data members
[-fpermissive]
 1126 |       struct _LBA {
      |              ^~~~
scsi.h:1130:14: error: 'struct _CDB::_PLAY_CD::<unnamed union>::_MSF'
invalid; an anonymous union may only have public non-static data members
[-fpermissive]
 1130 |       struct _MSF {
      |              ^~~~

-- 
Best regards,
  Alex


On Tue, 16 Jun 2020 at 08:40, Biswapriyo Nath <[email protected]> wrote:

>
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to