Unused local typedefs warning pragma is only applied to gcc>=4.8 (#470)
authorAlpar Juttner <alpar@cs.elte.hu>
Tue, 06 Aug 2013 09:10:18 +0200
changeset 9796039b32a2351
parent 975 756022ac1674
child 980 115031ac8001
Unused local typedefs warning pragma is only applied to gcc>=4.8 (#470)
lemon/core.h
     1.1 --- a/lemon/core.h	Tue Jul 30 15:03:53 2013 +0200
     1.2 +++ b/lemon/core.h	Tue Aug 06 09:10:18 2013 +0200
     1.3 @@ -38,6 +38,12 @@
     1.4  #endif
     1.5  
     1.6  #ifdef __GNUC__
     1.7 +#define GCC_VERSION (__GNUC__ * 10000                   \
     1.8 +                     + __GNUC_MINOR__ * 100             \
     1.9 +                     + __GNUC_PATCHLEVEL__)
    1.10 +#endif
    1.11 +
    1.12 +#if GCC_VERSION >= 40800
    1.13  // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8
    1.14  #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    1.15  #endif