From 50225112b56a087f84ceed94a41f96f1d1f893cc Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 20 Jun 2021 11:35:01 -0700 Subject: [PATCH] [lld-link] Fix -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC --- lld/COFF/Writer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp index 422a85c..7a85ecb 100644 --- a/lld/COFF/Writer.cpp +++ b/lld/COFF/Writer.cpp @@ -595,6 +595,7 @@ void Writer::finalizeAddresses() { // If the verification above thought we needed thunks, we should have // added some. assert(addressesChanged); + (void)addressesChanged; // Recalculate the layout for the whole image (and verify the ranges at // the start of the next round). -- 2.7.4