Kaydet (Commit) c59646dc authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence clang-cl warnings in ATL headers

Change-Id: Id94279d0086bc29569783f4e0b5d975be162e823
üst f6bb9d16
......@@ -30,7 +30,15 @@
#include <oleidl.h>
#ifndef __MINGW32__
#pragma warning(disable : 4265)
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wall"
#pragma clang diagnostic ignored "-Wmicrosoft"
#endif
#include <atldbcli.h>
#if defined __clang__
#pragma clang diagnostic pop
#endif
#endif
#include <cppuhelper/weak.hxx>
......
......@@ -17,6 +17,19 @@
#pragma warning(push)
#pragma warning(push, 1)
#pragma warning(disable: 4548)
#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
#endif
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
......@@ -34,6 +47,9 @@ using ::std::max;
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#ifdef _MSC_VER
#if defined __clang__
#pragma clang diagnostic pop
#endif
#pragma warning(pop)
#pragma warning(pop)
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment