0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/cctest
Daniel Bevenius f21cf456bf 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-14 10:26:42 +02:00
..
gtest
node_test_fixture.cc src: add abstract IsolatePlatformDelegate 2019-11-20 19:02:55 +01:00
node_test_fixture.h src: initialize inspector before RunBootstrapping() 2020-04-08 00:04:55 +02:00
test_aliased_buffer.cc src: ignore GCC -Wcast-function-type for v8.h 2020-04-14 10:26:42 +02:00
test_base64.cc
test_base_object_ptr.cc src: introduce custom smart pointers for BaseObjects 2019-11-19 13:47:29 +01:00
test_environment.cc src: initialize inspector before RunBootstrapping() 2020-04-08 00:04:55 +02:00
test_inspector_socket_server.cc inspector: added --inspect-publish-uid 2019-06-03 18:15:04 +03:00
test_inspector_socket.cc src: remove util-inl.h from header files 2019-05-13 13:43:26 -07:00
test_json_utils.cc src: move JSONWriter into its own file 2020-04-02 17:25:57 +02:00
test_linked_binding.cc src: allow adding linked bindings to Environment 2019-11-07 19:51:11 -08:00
test_node_postmortem_metadata.cc src: introduce custom smart pointers for BaseObjects 2019-11-19 13:47:29 +01:00
test_per_process.cc tools: fix js2c regression 2019-06-02 12:03:40 +02:00
test_platform.cc src: unregister Isolate with platform before disposing 2019-12-14 16:32:52 -05:00
test_sockaddr.cc src: introduce node_sockaddr 2020-03-05 12:07:34 -08:00
test_traced_value.cc
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-25 19:46:11 -07:00