Skip to content

Commit 95f2213

Browse files
targosnodejs-github-bot
authored andcommittedSep 19, 2024
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> PR-URL: #54536 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 09d997f commit 95f2213

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎common.gypi

+1-1
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.5',
39+
'v8_embedder_string': '-node.6',
4040

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

Diff for: ‎deps/v8/include/v8config.h

+1-1
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)
Please sign in to comment.