Signed-off-by: Roland Levillain <roland(a)lrde.epita.fr>
---
milena/ChangeLog | 6 ++++++
milena/mln/core/var.hh | 11 ++++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 28cbe0a..5496fbf 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-15 Armand Leclercq <marman.email(a)gmail.com>
+
+ Suppress user warnings from the use of mln_VAR with g++ 4.8.1.
+
+ * mln/core/var.hh (mln_VAR, mln_const_VAR): Here.
+
2013-10-09 Roland Levillain <roland(a)lrde.epita.fr>
Milena: Add a ``one-liner'' test to interpolated-tr_image.
diff --git a/milena/mln/core/var.hh b/milena/mln/core/var.hh
index 9892815..6a09976 100644
--- a/milena/mln/core/var.hh
+++ b/milena/mln/core/var.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2008, 2009, 2013 EPITA Research and Development
+// Laboratory (LRDE).
//
// This file is part of Olena.
//
@@ -40,13 +41,13 @@
/// result to it.
#define mln_VAR(Var, Expr) \
\
- typeof(Expr) Var = Expr; \
- typedef typeof(Expr) Var##_t
+ typedef typeof(Expr) Var##_t; \
+ Var##_t Var = Expr
#define mln_const_VAR(Var, Expr) \
\
- const typeof(Expr) Var = Expr; \
- typedef const typeof(Expr) Var##_t
+ typedef const typeof(Expr) Var##_t; \
+ Var##_t Var = Expr
// mln_PITER
--
1.7.10.4