v8: fix gcc 7 build errors
Porting https://github.com/nodejs/node/pull/12392 to master Fixes: https://github.com/nodejs/node/issues/10388
-
make -j4 test
(UNIX) -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
While trying to build latest v8.0.0-nightly on Fedora rawhide with gcc 7.0.1 I encountered some errors, so I'm opening this PR against master.