File tree Expand file tree Collapse file tree
packages/react-native/ReactCommon/cxxreact Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929#endif
3030
31- #ifndef __unused
32- #if defined(__GNUC__) || defined(__clang__)
33- #define __unused __attribute__ ((unused))
34- #else
35- #define __unused
36- #endif
37- #endif
38-
3931namespace facebook ::react {
4032
4133/* *
@@ -62,8 +54,8 @@ struct TraceSection {
6254 public:
6355 template <typename ... ConvertsToStringPiece>
6456 explicit TraceSection (
65- const __unused char * name,
66- __unused ConvertsToStringPiece&&... args) {
57+ [[maybe_unused]] const char * name,
58+ [[maybe_unused]] ConvertsToStringPiece&&... args) {
6759 TRACE_EVENT_BEGIN (" react-native" , perfetto::DynamicString{name}, args...);
6860 }
6961
@@ -90,8 +82,8 @@ struct DummyTraceSection {
9082 public:
9183 template <typename ... ConvertsToStringPiece>
9284 explicit DummyTraceSection (
93- const __unused char * name,
94- __unused ConvertsToStringPiece&&... args) {}
85+ [[maybe_unused]] const char * name,
86+ [[maybe_unused]] ConvertsToStringPiece&&... args) {}
9587};
9688using TraceSectionUnwrapped = DummyTraceSection;
9789#endif
You can’t perform that action at this time.
0 commit comments