node/test/cctest
Daniel Bevenius 2f7e372077 src: ignore GCC -Wcast-function-type for v8.h
Currently, the following warnings are emitted during compilation:
In file included from ../src/string_bytes.h:29,
                 from ../src/string_bytes.cc:22:
../deps/v8/include/v8.h:
In instantiation of ‘void v8::PersistentBase<T>::SetWeak(
    P*,typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType)
[with P = node::BaseObject;
T = v8::Object;
typename v8::WeakCallbackInfo<P>::Callback =
    void (*)(const v8::WeakCallbackInfo<node::BaseObject>&)]’:
../src/base_object-inl.h:135:42:   required from here
../deps/v8/include/v8.h:10732:16: warning:
cast between incompatible function types from
‘v8::WeakCallbackInfo<node::BaseObject>::Callback’ {aka
‘void (*)(const v8::WeakCallbackInfo<node::BaseObject>&)’} to
‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’}
[-Wcast-function-type]
10732 |                reinterpret_cast<Callback>(callback), type);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

And the same from test/cctest/test_aliased_buffer.cc

We have an open pull request against v8 for this:
https://chromium-review.googlesource.com/c/v8/v8/+/2080361

PR-URL: https://github.com/nodejs/node/pull/32679
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
2020-04-28 13:15:01 +02:00
..
gtest deps,test: bump googletest to 39f72ea6f5 2019-04-22 17:34:12 -04:00
node_test_fixture.cc test: make cctest full Node.js environment 2019-03-09 00:29:34 +01:00
node_test_fixture.h test: unset NODE_OPTIONS for cctest 2020-02-17 12:04:51 -08:00
test_aliased_buffer.cc src: ignore GCC -Wcast-function-type for v8.h 2020-04-28 13:15:01 +02:00
test_base64.cc src: apply clang-tidy rule modernize-deprecated-headers 2019-02-27 05:35:53 +01:00
test_base_object_ptr.cc src: introduce custom smart pointers for BaseObjects 2019-11-21 00:29:26 -05:00
test_environment.cc src: don't run bootstrapper in CreateEnvironment 2020-02-29 15:09:11 -08:00
test_inspector_socket.cc src: remove util-inl.h from header files 2019-05-13 13:43:26 -07:00
test_inspector_socket_server.cc inspector: added --inspect-publish-uid 2019-06-03 18:15:04 +03:00
test_json_utils.cc src: move JSONWriter into its own file 2020-04-11 10:03:12 +02:00
test_linked_binding.cc src: allow adding linked bindings to Environment 2019-11-16 23:59:11 -08:00
test_node_postmortem_metadata.cc src: introduce custom smart pointers for BaseObjects 2019-11-21 00:29:26 -05:00
test_per_process.cc tools: fix js2c regression 2019-06-02 12:03:40 +02:00
test_platform.cc src: unimplement deprecated v8-platform methods 2019-05-30 15:51:37 +02:00
test_sockaddr.cc src: introduce node_sockaddr 2020-03-09 18:56:02 -04:00
test_traced_value.cc src: apply clang-tidy rule modernize-deprecated-headers 2019-02-27 05:35:53 +01:00
test_url.cc src: remove env-inl.h from header files 2019-05-23 08:51:41 -07:00
test_util.cc src: enhance C++ sprintf utility 2020-03-26 13:58:58 -04:00