We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2adc4ba commit 05a1bf5Copy full SHA for 05a1bf5
include/mockutils/VTUtils.hpp
@@ -26,6 +26,9 @@ namespace fakeit {
26
#if defined(__GNUG__) && !defined(__clang__) && __GNUC__ >= 8
27
#pragma GCC diagnostic push
28
#pragma GCC diagnostic ignored "-Wcast-function-type"
29
+#elif defined(__clang__)
30
+#pragma clang diagnostic push
31
+#pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
32
#endif
33
template<typename C, typename R, typename ... arglist>
34
static unsigned int getOffset(R (C::*vMethod)(arglist...)) {
@@ -35,6 +38,8 @@ namespace fakeit {
35
38
}
36
39
37
40
#pragma GCC diagnostic pop
41
42
+#pragma clang diagnostic pop
43
44
45
template<typename C>
0 commit comments