Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Otrishko <shishugi@gmail.com>2020-01-26 18:59:51 +0300
committerRich Trott <rtrott@gmail.com>2020-01-29 06:52:30 +0300
commit2462a2c5d7b5ae7e28a0fdefdf4fd5e8eb0ff5ed (patch)
tree7c1e65c151f12b3775750fd029909e538454d215 /src/base_object-inl.h
parentb851d7b98644bc81adcd905dbebda102eeedd888 (diff)
src: fix ignore GCC -Wcast-function-type for older compilers
Fixes: https://github.com/nodejs/node/issues/31517 PR-URL: https://github.com/nodejs/node/pull/31524 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/base_object-inl.h')
-rw-r--r--src/base_object-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h
index 3d36eaa9230..8b2b30021a8 100644
--- a/src/base_object-inl.h
+++ b/src/base_object-inl.h
@@ -28,12 +28,12 @@
#include "env-inl.h"
#include "util.h"
-#if defined(__GNUC__) && !defined(__clang__)
+#if (__GNUC__ >= 8) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
#include "v8.h"
-#if defined(__GNUC__) && !defined(__clang__)
+#if (__GNUC__ >= 8) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif