summaryrefslogtreecommitdiff
path: root/src/plugins/guile/weechat-guile.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-03-06 16:42:54 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-03-06 16:42:54 +0100
commitd06f1e84860a964d0430f83518b8833877d5e0e5 (patch)
treec32fccaecaffb661c4da7cb34c64557ccc9a7f92 /src/plugins/guile/weechat-guile.c
parentffb6cc32084fcdc1be320e04f704d0db5bd3c014 (diff)
downloadweechat-d06f1e84860a964d0430f83518b8833877d5e0e5.zip
guile: remove disabling of guile gmp allocator with Guile ≥ 3.0.8
This fixes the compilation warning: weechat-guile.c: In function ‘weechat_plugin_init’: weechat-guile.c:1270:5: warning: ‘scm_install_gmp_memory_functions’ is deprecated [-Wdeprecated-declarations]
Diffstat (limited to 'src/plugins/guile/weechat-guile.c')
-rw-r--r--src/plugins/guile/weechat-guile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c
index 32febd4c6..a3108aa74 100644
--- a/src/plugins/guile/weechat-guile.c
+++ b/src/plugins/guile/weechat-guile.c
@@ -1261,14 +1261,14 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
if (!guile_buffer_output)
return WEECHAT_RC_ERROR;
-#ifdef HAVE_GUILE_GMP_MEMORY_FUNCTIONS
+#if defined(HAVE_GUILE_GMP_MEMORY_FUNCTIONS) && (SCM_MAJOR_VERSION < 3 || (SCM_MAJOR_VERSION == 3 && SCM_MINOR_VERSION == 0 && SCM_MICRO_VERSION < 8))
/*
* prevent guile to use its own gmp allocator, because it can conflict
* with other plugins using GnuTLS like relay, which can crash WeeChat
- * on unload (or exit)
+ * on unload (or exit); this is not needed any more with Guile ≥ 3.0.8
*/
scm_install_gmp_memory_functions = 0;
-#endif /* HAVE_GUILE_GMP_MEMORY_FUNCTIONS */
+#endif /* defined(HAVE_GUILE_GMP_MEMORY_FUNCTIONS) && (SCM_MAJOR_VERSION < 3 || (SCM_MAJOR_VERSION == 3 && SCM_MINOR_VERSION == 0 && SCM_MICRO_VERSION < 8)) */
scm_init_guile ();