Ver Fonte

Clang doesn't seem to like the calling-convention check cast templates

Derek Morris há 8 anos atrás
pai
commit
448ac6d6ee
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      lib/Runtime/Base/ThreadContextInfo.h

+ 2 - 0
lib/Runtime/Base/ThreadContextInfo.h

@@ -144,9 +144,11 @@ protected:
 
 #pragma warning(push)
 #pragma warning(error: 4440)
+CLANG_WNO_BEGIN("-Wignored-attributes")
 // MSVC will give warning C4440 in case of calling convention redefinition
 template<typename F> void EnsureStdcall(F*) { typedef F __stdcall* T; }
 template<typename F> void EnsureCdecl(F*) { typedef F __cdecl* T; }
+CLANG_WNO_END
 #pragma warning(pop)
 template<typename T>
 uintptr_t ShiftCdeclAddr(const ThreadContextInfo*const context, T* address)