Skip to content

Commit e4eda6f

Browse files
committed
deps: always define V8_NODISCARD as no-op
It's causing compiler errors with some classes on Xcode 11 and the attribute should have no runtime effect. PR-URL: #54077 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> PR-URL: #55014 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent ed1dd50 commit e4eda6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Reset this number to 0 on major V8 upgrades.
3939
# Increment by one for each non-official patch applied to deps/v8.
40-
'v8_embedder_string': '-node.5',
40+
'v8_embedder_string': '-node.6',
4141

4242
##### V8 defaults for Node.js #####
4343

deps/v8/include/v8config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ path. Add it with -I<path> to the command line
687687
// V8_NODISCARD Foo() { ... };
688688
// [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
689689
#if V8_HAS_CPP_ATTRIBUTE_NODISCARD
690-
#define V8_NODISCARD [[nodiscard]]
690+
#define V8_NODISCARD
691691
#else
692692
#define V8_NODISCARD /* NOT SUPPORTED */
693693
#endif

0 commit comments

Comments
 (0)