diff -r a26b90a17c81 -r 8b2d4e5d96e4 lemon/core.h --- a/lemon/core.h Wed Nov 28 11:58:00 2012 +0100 +++ b/lemon/core.h Wed Aug 07 06:55:05 2013 +0200 @@ -37,6 +37,17 @@ #pragma warning( disable : 4250 4355 4503 4800 4996 ) #endif +#ifdef __GNUC__ +#define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) +#endif + +#if GCC_VERSION >= 40800 +// Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8 +#pragma GCC diagnostic ignored "-Wunused-local-typedefs" +#endif + ///\file ///\brief LEMON core utilities. ///