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/pexception.cpp | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'src/lib/netlist/plib/pexception.cpp') diff --git a/src/lib/netlist/plib/pexception.cpp b/src/lib/netlist/plib/pexception.cpp index 7d0adca22c5..2eedd6f9d16 100644 --- a/src/lib/netlist/plib/pexception.cpp +++ b/src/lib/netlist/plib/pexception.cpp @@ -26,41 +26,75 @@ pexception::pexception(const pstring text) m_text = text; } +pexception::~pexception() noexcept +{ +} + file_e::file_e(const pstring fmt, const pstring &filename) : pexception(pfmt(fmt)(filename)) { } +file_e::~file_e() noexcept +{ +} + file_open_e::file_open_e(const pstring &filename) : file_e("File open failed: {}", filename) { } +file_open_e::~file_open_e() noexcept +{ + +} + file_read_e::file_read_e(const pstring &filename) : file_e("File read failed: {}", filename) { } +file_read_e::~file_read_e() noexcept +{ + +} + file_write_e::file_write_e(const pstring &filename) : file_e("File write failed: {}", filename) { } +file_write_e::~file_write_e() noexcept +{ +} + null_argument_e::null_argument_e(const pstring &argument) : pexception(pfmt("Null argument passed: {}")(argument)) { } +null_argument_e::~null_argument_e() noexcept +{ +} + out_of_mem_e::out_of_mem_e(const pstring &location) : pexception(pfmt("Out of memory: {}")(location)) { } -fpexception::fpexception(const pstring &text) +out_of_mem_e::~out_of_mem_e() noexcept +{ +} + +fpexception_e::fpexception_e(const pstring &text) : pexception(pfmt("Out of memory: {}")(text)) { } +fpexception_e::~fpexception_e() noexcept +{ +} + bool fpsignalenabler::m_enable = false; fpsignalenabler::fpsignalenabler(unsigned fpexceptions) -- cgit v1.2.3-70-g09d2