From 7a01c493b694eadcb657269faf2fc163c4753d49 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Thu, 21 Mar 2024 13:57:44 -0700 Subject: [PATCH] [NFC] silence unused warnings --- lib/Dialect/FIRRTL/Transforms/GrandCentral.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Dialect/FIRRTL/Transforms/GrandCentral.cpp b/lib/Dialect/FIRRTL/Transforms/GrandCentral.cpp index 39610b606c..1bf7f12f6c 100644 --- a/lib/Dialect/FIRRTL/Transforms/GrandCentral.cpp +++ b/lib/Dialect/FIRRTL/Transforms/GrandCentral.cpp @@ -47,14 +47,14 @@ namespace { // conversion from YAML. The LLVM YAML infrastructure doesn't provide the // ability to differentitate this and we don't need it for the purposes of // Grand Central. -static std::string noDefault(StringRef clazz) { +[[maybe_unused]] static std::string noDefault(StringRef clazz) { return ("default '" + clazz + "' construction is an intentionally *NOT* implemented " "YAML feature (you should never be using this)") .str(); } -static std::string deNorm(StringRef clazz) { +[[maybe_unused]] static std::string deNorm(StringRef clazz) { return ("conversion from YAML to a '" + clazz + "' is intentionally *NOT* implemented (you should not be " "converting from YAML to an interface)")