Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

'WebServices.h' and 'clang-cl' error #4027

Description

@gvanem

Compiling a C or C++ file that includes <WebServices.h> in my Winkit SDK,
generates these errors using clang-cl (ver. 19.1):

Infileincludedfromobjects/PurchaseOrder.wsdl.c:3:
f:\gv\WinKit\Include\10.0.22621.0\um\WebServices.h(695,1): error: useofemptyenum695 | } WS_XML_BUFFER_PROPERTY_ID;
| ^
f:\gv\WinKit\Include\10.0.22621.0\um\WebServices.h(1603,1): error: useofemptyenum1603 | } WS_SECURITY_ALGORITHM_PROPERTY_ID;
| ^
2errorsgenerated.

for these empty enums:

typedefenum
{
} WS_XML_BUFFER_PROPERTY_ID; // line 695
...
typedefenum
{
} WS_SECURITY_ALGORITHM_PROPERTY_ID; // line 1603

(The .c-file in question that I used was the generated PurchaseOrder.wsdl.c in this Windows Classic Samples project).

What is the purpose of an empty enum?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions