From 7f792e9b67d423cb6c6047836e9c24a32115a3eb Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 19 Mar 2013 01:14:44 +0100 Subject: avoid delete-non-virtual-dtor warning on g++ 4.7 * the warning itself makes sense but in the cases reportet they were irrelevant --- src/parser.h | 1 + src/qregisters.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/parser.h b/src/parser.h index 0af481f..0b139d9 100644 --- a/src/parser.h +++ b/src/parser.h @@ -132,6 +132,7 @@ protected: public: MicroStateMachine() : StateStart(NULL), state(StateStart) {} + virtual ~MicroStateMachine() {} virtual inline void reset(void) diff --git a/src/qregisters.h b/src/qregisters.h index fc2c0be..840e442 100644 --- a/src/qregisters.h +++ b/src/qregisters.h @@ -48,6 +48,7 @@ public: bool must_undo; QRegisterData() : integer(0), must_undo(true) {} + virtual ~QRegisterData() {} virtual tecoInt set_integer(tecoInt i) -- cgit v1.2.3