https://svn.lrde.epita.fr/svn/oln/trunk/extended
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Use TESTS_CXXFLAGS in Extended.
* tests/Makefile.am (TESTS_CXXFLAGS): New.
Append it to...
(CXXFLAGS): ...this variable.
* tests/optraits.cc (main): Make dummy use of all variables to
avoid compiler warnings.
Makefile.am | 8 ++++++--
optraits.cc | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
Index: tests/Makefile.am
--- tests/Makefile.am (revision 593)
+++ tests/Makefile.am (working copy)
@@ -1,12 +1,16 @@
## Process this file through Automake to create Makefile.in -*- Makefile -*-
AM_CPPFLAGS = -I$(top_srcdir)/extended -I$(top_srcdir)/metalic
+
# FIXME: Add
#
-# AM_CXXFLAGS = $(CXXFLAGS_STRICT) -ggdb
+# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG)
#
# when oln.m4 is available in the distribution.
-AM_CXXFLAGS = -O0 -ggdb
+# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
+# warn against this, but that's OK).
+TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
+CXXFLAGS += $(TESTS_CXXFLAGS)
check_PROGRAMS = \
Index: tests/optraits.cc
--- tests/optraits.cc (revision 593)
+++ tests/optraits.cc (working copy)
@@ -55,6 +55,8 @@
typeof(1+2u) tmp;
// 2 * cos(_1);
+ // Dummy usage.
+ tmp = tmp;
test_plus(2 * cos(_1), sin(_1));
}