← Back to team overview

dolfin team mailing list archive

Re: Compilation error in NewXMLGraph.cpp when debug turned off

 

I get this too, latest version.

Martin



On Wed, May 20, 2009 at 6:41 PM, Ilmar Wilbers <ilmarw@xxxxxxxxx> wrote:
> 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
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>


References