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 <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: #55014 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy