Suppress 'unused local typedefs' warnings, and resolve others (#470)
authorAlpar Juttner <alpar@cs.elte.hu>
Tue, 30 Jul 2013 15:03:53 +0200
changeset 1068756022ac1674
parent 1015 d32e4453b48c
child 1069 d1a48668ddb4
child 1072 0e30f63d45d0
child 1074 6039b32a2351
Suppress 'unused local typedefs' warnings, and resolve others (#470)
lemon/core.h
test/lp_test.cc
     1.1 --- a/lemon/core.h	Fri Jul 20 21:23:17 2012 +0200
     1.2 +++ b/lemon/core.h	Tue Jul 30 15:03:53 2013 +0200
     1.3 @@ -37,6 +37,11 @@
     1.4  #pragma warning( disable : 4250 4355 4503 4800 4996 )
     1.5  #endif
     1.6  
     1.7 +#ifdef __GNUC__
     1.8 +// Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8
     1.9 +#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    1.10 +#endif
    1.11 +
    1.12  ///\file
    1.13  ///\brief LEMON core utilities.
    1.14  ///
     2.1 --- a/test/lp_test.cc	Fri Jul 20 21:23:17 2012 +0200
     2.2 +++ b/test/lp_test.cc	Tue Jul 30 15:03:53 2013 +0200
     2.3 @@ -240,8 +240,7 @@
     2.4  
     2.5    {
     2.6      LP::DualExpr e,f,g;
     2.7 -    LP::Row p1 = INVALID, p2 = INVALID, p3 = INVALID,
     2.8 -      p4 = INVALID, p5 = INVALID;
     2.9 +    LP::Row p1 = INVALID, p2 = INVALID;
    2.10  
    2.11      e[p1]=2;
    2.12      e[p1]+=2;