Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible assignment of 'const gchar' to 'gchar' in g_utf8_next_char usage #102

Open
chenrui333 opened this issue Sep 15, 2024 · 1 comment · May be fixed by #103
Open

Incompatible assignment of 'const gchar' to 'gchar' in g_utf8_next_char usage #102

chenrui333 opened this issue Sep 15, 2024 · 1 comment · May be fixed by #103

Comments

@chenrui333
Copy link

👋 while regression building 0.5.5 release, seeing the following build error:

  /tmp/sdcv-20240914-6823-nvt5r0/sdcv-0.5.5/src/stardict_lib.cpp:1050:20: error: cannot initialize a variable of type 'gchar *' (aka 'char *') with an rvalue of type 'const gchar *' (aka 'const char *')
   1050 |             gchar *nextchar = g_utf8_next_char(sWord);
        |                    ^          ~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  make[2]: *** [CMakeFiles/sdcv.dir/src/stardict_lib.cpp.o] Error 1
@bobby285271
Copy link

We also experience this on NixOS with GLib 2.82 (https://hydra.nixos.org/build/274413637/nixlog/1), it looks like g_utf8_next_char no longer includes a cast to char* since https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4016.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants