From 3b203a65c2fb1fc1fdd2611ecc3cb5afeb5de817 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Thu, 5 Sep 2013 16:05:56 +0000 Subject: [PATCH] Add ATTRIBUTE_UNUSED to silence unused-function warning in release builds. llvm-svn: 190061 --- clang/lib/Format/UnwrappedLineParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index 766e1d8..814ccf4 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -1201,7 +1201,8 @@ void UnwrappedLineParser::parseObjCProtocol() { parseObjCUntilAtEnd(); } -static void printDebugInfo(const UnwrappedLine &Line, StringRef Prefix = "") { +LLVM_ATTRIBUTE_UNUSED static void printDebugInfo(const UnwrappedLine &Line, + StringRef Prefix = "") { llvm::dbgs() << Prefix << "Line(" << Line.Level << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; for (std::list::const_iterator I = Line.Tokens.begin(), -- 2.7.4