From 4ea18196c855e0e18fbcdf280989ac4062fa2256 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 6 Oct 2018 21:02:41 +0100 Subject: [PATCH] Fix deprecated dynamic exception specification warnings. --- tgt-vhdl/vhdl_element.cc | 3 +-- tgt-vhdl/vhdl_element.hh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tgt-vhdl/vhdl_element.cc b/tgt-vhdl/vhdl_element.cc index e7e0957b6..1b5c45191 100644 --- a/tgt-vhdl/vhdl_element.cc +++ b/tgt-vhdl/vhdl_element.cc @@ -108,7 +108,7 @@ void vhdl_element::print() const // Trap allocations of vhdl_element subclasses. // This records the pointer allocated in a static field of vhdl_element // so we can delete it just before the code generator exits. -void* vhdl_element::operator new(size_t size) throw (bad_alloc) +void* vhdl_element::operator new(size_t size) { // Let the default new handle the allocation void* ptr = ::operator new(size); @@ -171,4 +171,3 @@ int vhdl_element::free_all_objects() return freed; } - diff --git a/tgt-vhdl/vhdl_element.hh b/tgt-vhdl/vhdl_element.hh index a324e227d..8cf11d4cf 100644 --- a/tgt-vhdl/vhdl_element.hh +++ b/tgt-vhdl/vhdl_element.hh @@ -46,7 +46,7 @@ class vhdl_element { public: virtual ~vhdl_element() {} - void* operator new(size_t size) throw (std::bad_alloc); + void* operator new(size_t size); void operator delete(void* ptr); virtual void emit(std::ostream &of, int level=0) const = 0; @@ -74,4 +74,3 @@ std::string nl_string(int level); void blank_line(std::ostream &of, int level); #endif -