aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/concept_check/patches/fix-clang-cl-build.patch
blob: c42f6bada365a0b7f3ef3836d39265368f6087e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/include/boost/concept/detail/msvc.hpp	(index)
+++ b/include/boost/concept/detail/msvc.hpp	(working tree)
@@ -18,6 +18,11 @@
 #  pragma warning(disable:4100)
 # endif
 
+# if defined(__clang__)
+#  pragma clang diagnostic push
+#  pragma clang diagnostic ignored "-Wnon-virtual-dtor"
+# endif
+
 namespace boost { namespace concepts {
 
 
@@ -116,6 +121,10 @@ enum                                                    \
 # endif
 }}
 
+# if defined(__clang__)
+#  pragma clang diagnostic pop
+# endif
+
 # ifdef BOOST_MSVC
 #  pragma warning(pop)
 # endif