From 3bc40c5feee50214deba0a77ddc43443cff449f6 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 8 Mar 2012 22:15:23 +0000 Subject: Silence unused function warning when graphviz is not available. llvm-svn: 152346 --- llvm/lib/Support/GraphWriter.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Support/GraphWriter.cpp') diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp index aca46d8b754..32126ec39eb 100644 --- a/llvm/lib/Support/GraphWriter.cpp +++ b/llvm/lib/Support/GraphWriter.cpp @@ -54,11 +54,9 @@ std::string llvm::DOT::EscapeString(const std::string &Label) { } // Execute the graph viewer. Return true if successful. -static bool ExecGraphViewer(const sys::Path &ExecPath, - std::vector &args, - const sys::Path &Filename, - bool wait, - std::string &ErrMsg) { +static bool LLVM_ATTRIBUTE_UNUSED +ExecGraphViewer(const sys::Path &ExecPath, std::vector &args, + const sys::Path &Filename, bool wait, std::string &ErrMsg) { if (wait) { if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) { errs() << "Error: " << ErrMsg << "\n"; -- cgit v1.2.3