diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-30 14:11:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-02 08:02:19 +0100 |
commit | 5a4791a8f50192935caa4e7b2032f9cd78b307e5 (patch) | |
tree | a42f3709bd74b46c2a970a4bc7fae6da2a7a5e71 /extensions/source | |
parent | 5ccdc4187bd679c41d89b920847fe0c04d81bdb8 (diff) |
Silence clang-cl warnings in ATL headers
Change-Id: I85df6250d4cae3dd6bd516f2086af7efcf2cd562
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/activex/StdAfx2.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/source/activex/StdAfx2.h b/extensions/source/activex/StdAfx2.h index 484edfcf988b..8d929a912bde 100644 --- a/extensions/source/activex/StdAfx2.h +++ b/extensions/source/activex/StdAfx2.h @@ -40,6 +40,19 @@ // expression before comma has no effect; expected expression with side-effect #pragma warning (disable:4555) // expression has no effect; expected expression with side-effect +#if defined __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wall" +#pragma clang diagnostic ignored "-Wattributes" +#pragma clang diagnostic ignored "-Wdelete-incomplete" +#pragma clang diagnostic ignored "-Wdynamic-class-memaccess" +#pragma clang diagnostic ignored "-Wint-to-pointer-cast" +#pragma clang diagnostic ignored "-Winvalid-noreturn" +#pragma clang diagnostic ignored "-Wmicrosoft" +#pragma clang diagnostic ignored "-Wnon-pod-varargs" +#pragma clang diagnostic ignored "-Wsequence-point" +#pragma clang diagnostic ignored "-Wtypename-missing" +#endif #define min(a, b) (((a) < (b)) ? (a) : (b)) #include <atlbase.h> @@ -50,6 +63,9 @@ extern CComModule _Module; #include <atlcom.h> #include <atlctl.h> +#if defined __clang__ +#pragma clang diagnostic pop +#endif #pragma warning (pop) //{{AFX_INSERT_LOCATION}} |