[PATCH] rpcndr.h: Don't use unnamed struct for NDR_SCONTEXT declaration.
Jacek Caban
jacek at codeweavers.com
Tue Jan 8 13:32:04 CST 2019
Fixes C++ warning.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---
mingw-w64 does the same as this patch. PSDK uses an unnamed struct (but
cl doesn't emit a warning).
The warning is:
In file included from /home/jacek/wine/wine-git/include/wtypes.h:8:0,
from /home/jacek/wine/wine-git/include/winscard.h:22,
from /home/jacek/wine/wine-git/include/windows.h:70,
from test.cpp:2:
/home/jacek/wine/wine-git/include/rpcndr.h:188:16: warning:
‘_MIDL_STUB_MESSAGE’ has a field
‘_MIDL_STUB_MESSAGE::SavedContextHandles’ whose type depends on the type
‘<unnamed struct>’ which has no linkage [-Wsubobject-linkage]
typedef struct _MIDL_STUB_MESSAGE
^~~~~~~~~~~~~~~~~~
/home/jacek/wine/wine-git/include/rpcndr.h:491:16: warning:
‘_SCONTEXT_QUEUE’ has a field ‘_SCONTEXT_QUEUE::ArrayOfObjects’ whose
type depends on the type ‘<unnamed struct>’ which has no linkage
[-Wsubobject-linkage]
typedef struct _SCONTEXT_QUEUE {
^~~~~~~~~~~~~~~
include/rpcndr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rpcndr.h-Don-t-use-unnamed-struct-for-NDR_SCONTEXT-de.diff
Type: text/x-patch
Size: 384 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190108/1a8a78e6/attachment.bin>
More information about the wine-devel
mailing list