From 02c3f45bff27e8ca27d5f68f52c816e5f055eadf Mon Sep 17 00:00:00 2001 From: couriersud Date: Thu, 5 Jan 2017 01:43:12 +0100 Subject: Fix clang "-Wno-weak-vtables" warnings in netlist source. Refactored code along the way. (nw) --- src/lib/netlist/plib/pstream.cpp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'src/lib/netlist/plib/pstream.cpp') diff --git a/src/lib/netlist/plib/pstream.cpp b/src/lib/netlist/plib/pstream.cpp index b9895036a12..b05d86d7bc5 100644 --- a/src/lib/netlist/plib/pstream.cpp +++ b/src/lib/netlist/plib/pstream.cpp @@ -14,10 +14,19 @@ #include "palloc.h" namespace plib { + +pstream::~pstream() +{ +} + // ----------------------------------------------------------------------------- // pistream: input stream // ----------------------------------------------------------------------------- +pistream::~pistream() +{ +} + bool pistream::readline(pstring &line) { char c = 0; @@ -44,6 +53,10 @@ bool pistream::readline(pstring &line) // postream: output stream // ----------------------------------------------------------------------------- +postream::~postream() +{ +} + void postream::write(pistream &strm) { char buf[1024]; @@ -142,6 +155,10 @@ pstdin::pstdin() /* nothing to do */ } +pstdin::~pstdin() +{ +} + // ----------------------------------------------------------------------------- // Output file stream // ----------------------------------------------------------------------------- @@ -209,6 +226,11 @@ pstream::pos_type pofilestream::vtell() return static_cast(ret); } +postringstream::~postringstream() +{ +} + + // ----------------------------------------------------------------------------- // pstderr: write to stderr // ----------------------------------------------------------------------------- @@ -218,6 +240,10 @@ pstderr::pstderr() { } +pstderr::~pstderr() +{ +} + // ----------------------------------------------------------------------------- // pstdout: write to stdout // ----------------------------------------------------------------------------- @@ -227,6 +253,10 @@ pstdout::pstdout() { } +pstdout::~pstdout() +{ +} + // ----------------------------------------------------------------------------- // Memory stream // ----------------------------------------------------------------------------- @@ -273,6 +303,10 @@ pimemstream::pos_type pimemstream::vtell() return m_pos; } +pistringstream::~pistringstream() +{ +} + // ----------------------------------------------------------------------------- // Output memory stream // ----------------------------------------------------------------------------- @@ -333,4 +367,9 @@ pstream::pos_type pomemstream::vtell() return m_pos; } +pstream_fmt_writer_t::~pstream_fmt_writer_t() +{ +} + + } -- cgit v1.2.3-70-g09d2