aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxxrt/patches/throw_specs.patch
blob: a1c0e5abe9d8dc5ff41deed4198c4e7724107635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/memory.cc b/memory.cc
index 7beb048..bb6cc74 100644
--- a/memory.cc
+++ b/memory.cc
@@ -59,13 +59,13 @@ namespace std
 	 * Sets a function to be called when there is a failure in new.
 	 */
 	__attribute__((weak))
-	new_handler set_new_handler(new_handler handler)
+	new_handler set_new_handler(new_handler handler) noexcept
 	{
 		return new_handl.exchange(handler);
 	}
 
 	__attribute__((weak))
-	new_handler get_new_handler(void)
+	new_handler get_new_handler(void) noexcept
 	{
 		return new_handl.load();
 	}