Commit b90bea14 authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

fix compiler warning if graphviz is not found (#155)

parent 3383743e
......@@ -72,7 +72,7 @@ std::string pass::VisualizeTree::get_attributes(const Node* node)
void pass::VisualizeTree::render() const
{
#if GRAPHVIZ_FOUND
#ifdef GRAPHVIZ_FOUND
auto tmp_file = m_name + ".tmp";
ofstream out(tmp_file);
if (out)
......
......@@ -69,7 +69,7 @@ std::string Visualize::get_attributes(const Node* node)
void Visualize::save_dot(const string& path) const
{
#if GRAPHVIZ_FOUND
#ifdef GRAPHVIZ_FOUND
auto tmp_file = path + ".tmp";
ofstream out(tmp_file);
if (out)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment