blob: 0c79c4c094ca88836ec508d835a8ee5c75d844d5 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From 340110292b35d367205953a59e7eab28e1f4a0bb Mon Sep 17 00:00:00 2001
2From: Daniel Frey <d.frey@gmx.de>
3Date: Sat, 7 Apr 2018 09:13:51 +0200
4Subject: [PATCH] Fix clang-warning about non-virtual dtor
5
6Upstream-Status: Backport [https://github.com/taocpp/PEGTL/commit/340110292b35d367205953a59e7eab28e1f4a0bb]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 src/example/pegtl/json_classes.hpp | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12--- a/src/example/pegtl/json_classes.hpp
13+++ b/src/example/pegtl/json_classes.hpp
14@@ -34,10 +34,7 @@ namespace examples
15 : type( in_type )
16 {
17 }
18-
19- ~json_base()
20- {
21- }
22+ virtual ~json_base() = default;
23 };
24
25 inline std::ostream& operator<<( std::ostream& o, const json_base& j )