From 1707457560fd0b7f1370b4d1cee721d1b7cad29f Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <[email protected]> Date: Sat, 23 May 2020 11:31:55 +0530 Subject: [PATCH] ddk/ntifs.h: fix compilation with struct STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE
flexible array member in union is not supported in GCC standard mingw-w64 bug: https://sourceforge.net/p/mingw-w64/bugs/777/ Signed-off-by: Biswapriyo Nath <[email protected]> --- mingw-w64-headers/ddk/include/ddk/ntifs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-headers/ddk/include/ddk/ntifs.h b/mingw-w64-headers/ddk/include/ddk/ntifs.h index e2dc959..673eb36 100644 --- a/mingw-w64-headers/ddk/include/ddk/ntifs.h +++ b/mingw-w64-headers/ddk/include/ddk/ntifs.h @@ -4254,8 +4254,8 @@ typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE { ULONG ResponseLevel; ULONG NumberEntries; _ANONYMOUS_UNION union { - STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY Lev1Depends[]; - STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY Lev2Depends[]; + STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY Lev1Depends[0]; + STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY Lev2Depends[0]; } DUMMYUNIONNAME; } STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE, *PSTORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; -- 2.26.2
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
