[v13.x backport] src: ignore GCC -Wcast-function-type for v8.h
Checklist
Backport of https://github.com/nodejs/node/pull/31475 and https://github.com/nodejs/node/pull/31524 Builds fine with GCC 9.2.1 and 7.3.1
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines