diff options
author | Denys Otrishko <shishugi@gmail.com> | 2020-01-26 18:59:51 +0300 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2020-02-17 21:18:32 +0300 |
commit | 83dd65a4693d9f478f9832238c56b0d17babbe87 (patch) | |
tree | 88bd8ff42bfe04a70263b168cecd09af4a733add /src/base_object-inl.h | |
parent | 13c69657037591427f217808780f95db17f0fe50 (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.h | 4 |
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 |