Skip to content

Commit

Permalink
aspell: fix -Wdeprecated-declarations for g_module_build_path
Browse files Browse the repository at this point in the history
```
../../../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>
  • Loading branch information
zyv committed Jul 28, 2024
1 parent 55e7f83 commit 0749b6d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/editor/spell.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,10 @@ spell_decode_lang (const char *code)
static gboolean
spell_available (void)
{
gchar *spell_module_fname;

if (spell_module != NULL)
return TRUE;

spell_module_fname = g_module_build_path (NULL, "libaspell");
spell_module = g_module_open (spell_module_fname, G_MODULE_BIND_LAZY);
g_free (spell_module_fname);
spell_module = g_module_open ("libaspell", G_MODULE_BIND_LAZY);

if (spell_module != NULL
&& ASPELL_FUNCTION_AVAILABLE (new_aspell_config)
Expand Down

0 comments on commit 0749b6d

Please sign in to comment.