mirror of https://github.com/MidnightCommander/mc
aspell: fix `-Wdeprecated-declarations` for `g_module_build_path`
``` ../../../src/editor/spell.c:177:26: warning: 'g_module_build_path' is deprecated [-Wdeprecated-declarations] spell_module_fname = g_module_build_path (NULL, "libaspell"); ^ /opt/homebrew/Cellar/glib/2.80.4/include/glib-2.0/gmodule.h:141:1: note: 'g_module_build_path' has been explicitly marked deprecated here GMODULE_DEPRECATED_IN_2_76 ``` Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
55e7f8321b
commit
0749b6d2d3
|
@ -169,14 +169,10 @@ spell_decode_lang (const char *code)
|
||||||
static gboolean
|
static gboolean
|
||||||
spell_available (void)
|
spell_available (void)
|
||||||
{
|
{
|
||||||
gchar *spell_module_fname;
|
|
||||||
|
|
||||||
if (spell_module != NULL)
|
if (spell_module != NULL)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
spell_module_fname = g_module_build_path (NULL, "libaspell");
|
spell_module = g_module_open ("libaspell", G_MODULE_BIND_LAZY);
|
||||||
spell_module = g_module_open (spell_module_fname, G_MODULE_BIND_LAZY);
|
|
||||||
g_free (spell_module_fname);
|
|
||||||
|
|
||||||
if (spell_module != NULL
|
if (spell_module != NULL
|
||||||
&& ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
|
&& ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
|
||||||
|
|
Loading…
Reference in New Issue