Index: src/common/test_assembler.h |
=================================================================== |
--- src/common/test_assembler.h (revision 977) |
+++ src/common/test_assembler.h (working copy) |
@@ -271,8 +271,11 @@ |
public: |
Section(Endianness endianness = kUnsetEndian) |
: endianness_(endianness) { }; |
- ~Section() { }; |
+ // A base class destructor should be either public and virtual, |
+ // or protected and nonvirtual. |
+ virtual ~Section() { }; |
+ |
// Set the default endianness of this section to ENDIANNESS. This |
// sets the behavior of the D<N> appending functions. If the |
// assembler's default endianness was set, this is the |