Skip to content

Commit e8f55f7

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 b3c1b63 commit e8f55f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common.gypi

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ path. Add it with -I<path> to the command line
677677
// V8_NODISCARD Foo() { ... };
678678
// [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
679679
#if V8_HAS_CPP_ATTRIBUTE_NODISCARD
680-
#define V8_NODISCARD [[nodiscard]]
680+
#define V8_NODISCARD
681681
#else
682682
#define V8_NODISCARD /* NOT SUPPORTED */
683683
#endif

0 commit comments

Comments
 (0)