Skip to content

Commit 6b874b2

Browse files
committed
Try LLVM_ATTRIBUTE_UNUSED
1 parent a5f7a42 commit 6b874b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lld/MachO/Driver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,9 @@ void multiThreadedPageInBackground(const DeferredFiles &deferred) {
311311
totalBytes += buff.size();
312312

313313
// Reference all file's mmap'd pages to load them into memory.
314-
volatile char t = 0;
315314
for (const char *page = buff.data(), *end = page + buff.size();
316315
page < end; page += pageSize)
317-
t += *page;
316+
LLVM_ATTRIBUTE_UNUSED volatile char t = *page;
318317
}
319318
});
320319

0 commit comments

Comments
 (0)