dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #13638
Compilation error in NewXMLGraph.cpp when debug turned off
When building Dolfin with enableDebug=0, I get the following error:
cc1plus: warnings being treated as errors
dolfin/io/NewXMLGraph.cpp: In static member function ‘static void
dolfin::NewXMLGraph::write(const dolfin::Graph&, std::ostream&,
dolfin::uint)’:
dolfin/io/NewXMLGraph.cpp:121: error: unused variable ‘edge_weights’
scons: *** [dolfin/io/NewXMLGraph.os] Error 1
scons: building terminated because of errors.
dolfin/io/NewXMLGraph.os failed: Error 1
This is probably because edge_weights is only used with an assertion:
dolfin_assert(edge_weights);
and this assertion not being made when debug mode is turned off.
ilmar
Follow ups