# HG changeset patch
# User Alpar Juttner <alpar@cs.elte.hu>
# Date 1375773018 -7200
# Node ID 6039b32a2351ab07de9a5eb0f2f8d7c4c5f9eb2d
# Parent  756022ac167475c2d4675bbf4c00169ade2bea54
Unused local typedefs warning pragma is only applied to gcc>=4.8 (#470)

diff -r 756022ac1674 -r 6039b32a2351 lemon/core.h
--- a/lemon/core.h	Tue Jul 30 15:03:53 2013 +0200
+++ b/lemon/core.h	Tue Aug 06 09:10:18 2013 +0200
@@ -38,6 +38,12 @@
 #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