
https://svn.lrde.epita.fr/svn/oln/trunk/olena Index: ChangeLog from Roland Levillain <roland@lrde.epita.fr> Use TESTS_CXXFLAGS in Olena. * tests/Makefile.am (TESTS_CXXFLAGS): New. Append it to... (CXXFLAGS): ...this variable. * tests/fill.cc: Typo in comment. Makefile.am | 6 ++++-- fill.cc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) Index: tests/Makefile.am --- tests/Makefile.am (revision 595) +++ tests/Makefile.am (working copy) @@ -9,8 +9,10 @@ # AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_DEBUG) # # when oln.m4 is available in the distribution. -# Meanwhile, alter CXXFLAGS to turn off any optimization. -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/fill.cc --- tests/fill.cc (revision 595) +++ tests/fill.cc (working copy) @@ -29,7 +29,7 @@ #include <cassert> // FIXME: We should not include oln/basics2d.hh, but -// oln/core/2d/image2d.hh (and oln/core/2d/neigh2d.hh ?). +// just oln/core/2d/image2d.hh. #include <oln/basics2d.hh> #include <oln/level/fill.hh>