The Windows MIDL code generator creates things like: #endif !_MIDL_USE_GUIDDEF_ which clang-cl complains about. MSVC doesn't, so turn this warning off.