@@ -488,9 +488,16 @@ V8_INLINE void PersistentBase<T>::SetWeak(
|
488 | 488 | #if (__GNUC__ >= 8) && !defined(__clang__) |
489 | 489 | #pragma GCC diagnostic push |
490 | 490 | #pragma GCC diagnostic ignored "-Wcast-function-type" |
| 491 | +#endif |
| 492 | +#if __clang__ |
| 493 | +#pragma clang diagnostic push |
| 494 | +#pragma clang diagnostic ignored "-Wcast-function-type" |
491 | 495 | #endif |
492 | 496 | api_internal::MakeWeak(this->slot(), parameter, |
493 | 497 | reinterpret_cast<Callback>(callback), type); |
| 498 | +#if __clang__ |
| 499 | +#pragma clang diagnostic pop |
| 500 | +#endif |
494 | 501 | #if (__GNUC__ >= 8) && !defined(__clang__) |
495 | 502 | #pragma GCC diagnostic pop |
496 | 503 | #endif |
|