The compilatoin fails with gcc-14 (gcc (Gentoo 14.1.1_p20240518 p1) 14.1.1 20240516).
In file included from /usr/include/glib-2.0/glib.h:64,
from /usr/include/glib-2.0/gobject/gbinding.h:30,
from /usr/include/glib-2.0/glib-object.h:24,
from ../libskk/libskk.h:6,
from file-dict.c:22:
file-dict.c: In function 'skk_file_dict_read_until':
/usr/include/glib-2.0/glib/gmessages.h:660:16: error: returning 'void *' from a function with return type 'gboolean' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion]
660 | return (val); \
| ^
file-dict.c:339:9: note: in expansion of macro 'g_return_val_if_fail'
339 | g_return_val_if_fail (((gsize) (*offset)) < _tmp2_, NULL);
| ^~~~~~~~~~~~~~~~~~~~
This happen because null is returned where boolean is expected.
The compilatoin fails with gcc-14 (
gcc (Gentoo 14.1.1_p20240518 p1) 14.1.1 20240516
).This happen because
null
is returned where boolean is expected.