File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ static_assert(alignof(Job) == 2 * alignof(void*),
170
170
class NullaryContinuationJob : public Job {
171
171
172
172
private:
173
- AsyncTask* Task;
174
- AsyncTask* Continuation;
173
+ SWIFT_ATTRIBUTE_UNUSED AsyncTask * Task;
174
+ AsyncTask * Continuation;
175
175
176
176
public:
177
177
NullaryContinuationJob (AsyncTask *task, JobPriority priority, AsyncTask *continuation)
Original file line number Diff line number Diff line change 98
98
#define SWIFT_ATTRIBUTE_NORETURN
99
99
#endif
100
100
101
+ #if __has_attribute(unused)
102
+ #define SWIFT_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
103
+ #else
104
+ #define SWIFT_ATTRIBUTE_UNUSED
105
+ #endif
106
+
101
107
#ifndef SWIFT_BUG_REPORT_URL
102
108
#define SWIFT_BUG_REPORT_URL " https://swift.org/contributing/#reporting-bugs"
103
109
#endif
You can’t perform that action at this time.
0 commit comments