[Lemon-commits] Alpar Juttner: Unused local typedefs warning pra...
Lemon HG
hg at lemon.cs.elte.hu
Tue Aug 6 09:11:49 CEST 2013
details: http://lemon.cs.elte.hu/hg/lemon/rev/5d6e2787b356
changeset: 1249:5d6e2787b356
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Tue Aug 06 09:10:18 2013 +0200
description:
Unused local typedefs warning pragma is only applied to gcc>=4.8
(#470)
diffstat:
lemon/core.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 38c432e01489 -r 5d6e2787b356 lemon/core.h
--- a/lemon/core.h Tue Aug 06 06:52:36 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
More information about the Lemon-commits
mailing list