Skip to content

Commit a414c22

Browse files
[Support] Fix warnings
This patch fixes: llvm/lib/Support/Mustache.cpp:332:20: error: unused function 'tagKindToString' [-Werror,-Wunused-function] llvm/lib/Support/Mustache.cpp:344:20: error: unused function 'jsonKindToString' [-Werror,-Wunused-function]
1 parent 079d589 commit a414c22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Support/Mustache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ struct Tag {
329329
size_t StartPosition = StringRef::npos;
330330
};
331331

332-
static const char *tagKindToString(Tag::Kind K) {
332+
[[maybe_unused]] static const char *tagKindToString(Tag::Kind K) {
333333
switch (K) {
334334
case Tag::Kind::None:
335335
return "None";
@@ -341,7 +341,7 @@ static const char *tagKindToString(Tag::Kind K) {
341341
llvm_unreachable("Unknown Tag::Kind");
342342
}
343343

344-
static const char *jsonKindToString(json::Value::Kind K) {
344+
[[maybe_unused]] static const char *jsonKindToString(json::Value::Kind K) {
345345
switch (K) {
346346
case json::Value::Kind::Null:
347347
return "JSON_KIND_NULL";

0 commit comments

Comments
 (0)