Skip to content

Commit 28f3e5c

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 <technicalcute@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent a41c381 commit 28f3e5c

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
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.8',
39+
'v8_embedder_string': '-node.9',
4040

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

deps/v8/include/v8config.h

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

0 commit comments

Comments
 (0)