[flang] [llvm] [llvm][flang] Silence warning, resume -Werror builds of flang (PR #175053)

Eugene Epshteyn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 11:30:36 PST 2026


================
@@ -211,6 +211,8 @@ class SmallVectorTemplateCommon
       this->assertSafeToReferenceAfterResize(From, 0);
       this->assertSafeToReferenceAfterResize(To - 1, 0);
     }
+    (void)From;
----------------
eugeneepshteyn wrote:

What about `[[maybe_unused]]`? It's supported in C++ 17 and seems to be used elsewhere in LLVM.

https://github.com/llvm/llvm-project/pull/175053


More information about the llvm-commits mailing list