diff --git a/src/base_object-inl.h b/src/base_object-inl.h index 0b620ab864f67b..b9f99a03ddfb3e 100644 --- a/src/base_object-inl.h +++ b/src/base_object-inl.h @@ -28,14 +28,7 @@ #include "env-inl.h" #include "util.h" -#if (__GNUC__ >= 8) && !defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wcast-function-type" -#endif #include "v8.h" -#if (__GNUC__ >= 8) && !defined(__clang__) -#pragma GCC diagnostic pop -#endif namespace node { diff --git a/src/node.h b/src/node.h index 6f93fc89e1ff82..0dc2de975b811d 100644 --- a/src/node.h +++ b/src/node.h @@ -60,14 +60,7 @@ # define SIGKILL 9 #endif -#if (__GNUC__ >= 8) && !defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wcast-function-type" -#endif #include "v8.h" // NOLINT(build/include_order) -#if (__GNUC__ >= 8) && !defined(__clang__) -#pragma GCC diagnostic pop -#endif #include "v8-platform.h" // NOLINT(build/include_order) #include "node_version.h" // NODE_MODULE_VERSION diff --git a/src/util.h b/src/util.h index d3c5fdd74eddbd..92f51baf374382 100644 --- a/src/util.h +++ b/src/util.h @@ -24,14 +24,7 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS -#if (__GNUC__ >= 8) && !defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wcast-function-type" -#endif #include "v8.h" -#if (__GNUC__ >= 8) && !defined(__clang__) -#pragma GCC diagnostic pop -#endif #include #include