commit a2f6a34: [Minor] Add noexcept qualifier

Vsevolod Stakhov vsevolod at rspamd.com
Sat Apr 30 19:21:21 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-04-10 10:21:31 +0100
URL: https://github.com/rspamd/rspamd/commit/a2f6a34d233b718eac67572a091e456b1c368004

[Minor] Add noexcept qualifier

---
 config.h.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.h.in b/config.h.in
index 9487fd76e..6d1c03f37 100644
--- a/config.h.in
+++ b/config.h.in
@@ -389,9 +389,9 @@ extern uint64_t ottery_rand_uint64(void);
 
 #ifdef __cplusplus
   #define RSPAMD_CONSTRUCTOR(f) \
-        static void f(void); \
-        struct f##_t_ { f##_t_(void) { f(); } }; static f##_t_ f##_; \
-        static void f(void)
+        static void f(void) noexcept; \
+        struct f##_t_ { f##_t_(void) noexcept { f(); } }; static f##_t_ f##_; \
+        static void f(void) noexcept
 #else
 #if  __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
   #define RSPAMD_CONSTRUCTOR(f) \


More information about the Commits mailing list