https://svn.lrde.epita.fr/svn/oln/trunk/static
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Use TESTS_CXXFLAGS in Static.
* tests/Makefile.am (TESTS_CXXFLAGS): New.
Append it to...
(CXXFLAGS): ...this variable.
* tests/tour.cc (dynamic_hierarchy::A, dynamic_hierarchy::B)
(dynamic_hierarchy::C): Add missing virtual destructors.
Makefile.am | 3 ++-
tour.cc | 6 ++++++
2 files changed, 8 insertions(+), 1 deletion(-)
Index: tests/Makefile.am
--- tests/Makefile.am (revision 594)
+++ tests/Makefile.am (working copy)
@@ -9,7 +9,8 @@
# when oln.m4 is available in the distribution.
# Meanwhile, alter CXXFLAGS to turn off any optimization (Automake will
# warn against this, but that's OK).
-CXXFLAGS = -O0 -ggdb
+TESTS_CXXFLAGS = @TESTS_CXXFLAGS@
+CXXFLAGS += $(TESTS_CXXFLAGS)
check_PROGRAMS = \
Index: tests/tour.cc
--- tests/tour.cc (revision 594)
+++ tests/tour.cc (working copy)
@@ -79,6 +79,8 @@
virtual int foo() { return 1; }
// A virtual pure method.
virtual int bar() = 0;
+
+ virtual ~A() {}
};
// `B' is a concrete class.
@@ -88,6 +90,8 @@
virtual int foo() { return 2; }
// `B::bar' is defined.
virtual int bar() { return 3; }
+
+ virtual ~B() {}
};
// `C' is a concrete class.
@@ -95,6 +99,8 @@
{
// `B::foo' is redefined.
virtual int foo() { return 4; }
+
+ virtual ~C() {}
};
} // end of namespace dynamic_hierarchy