From 48285c20eb5f5ed4f7b539fbd7f882c997a08f46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?D=C3=A1vid=20Bolvansk=C3=BD?= Date: Thu, 24 Mar 2022 07:50:57 +0100 Subject: [PATCH] [NFCI] Fix set-but-unused warning in ClangAttrEmitter.cpp --- clang/utils/TableGen/ClangAttrEmitter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index 47c06cd..b77554c 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -1522,12 +1522,10 @@ writePrettyPrintFunction(const Record &R, // To avoid printing parentheses around an empty argument list or // printing spurious commas at the end of an argument list, we need to // determine where the last provided non-fake argument is. - unsigned NonFakeArgs = 0; bool FoundNonOptArg = false; for (const auto &arg : llvm::reverse(Args)) { if (arg->isFake()) continue; - ++NonFakeArgs; if (FoundNonOptArg) continue; // FIXME: arg->getIsOmitted() == "false" means we haven't implemented -- 2.7.4