Skip to content
Snippets Groups Projects

testing/qstardict: fix build, reenable on loongarch64

Merged mio requested to merge mio/aports:qstardict into master

Fix invalid conversion error with clang and reenable on loongarch64.

In file included from /usr/include/glib-2.0/glib/gstring.h:35:
lib.cpp: In member function 'bool Libs::LookupSimilarWord(const gchar*, glong&, int)':
/usr/include/glib-2.0/glib/gunicode.h:809:34: error: invalid conversion
from 'const gchar*' {aka 'const char*'} to 'gchar*' {aka 'char*'
} [-fpermissive]
  809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
      |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  const gchar* {aka const char*}
lib.cpp:1254:31: note: in expansion of macro 'g_utf8_next_char'
 1254 |             gchar *nextchar = g_utf8_next_char(sWord);
      |                               ^~~~~~~~~~~~~~~~
Edited by mio

Merge request reports

Merge request pipeline #274913 passed

Merge request pipeline passed for d40fc8c9

Approval is optional

Merged by CelesteCeleste 3 months ago (Nov 24, 2024 3:03am UTC)

Merge details

  • Changes merged into master with d40fc8c9.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • **** assigned to @terra

    assigned to @terra

  • mio changed title from Draft: testing/qstardict: fix build with clang 19 to Draft: testing/qstardict: fix build with clang 19, reenable on loongarch64

    changed title from Draft: testing/qstardict: fix build with clang 19 to Draft: testing/qstardict: fix build with clang 19, reenable on loongarch64

  • mio changed the description

    changed the description

  • mio changed title from Draft: testing/qstardict: fix build with clang 19, reenable on loongarch64 to Draft: testing/qstardict: fix build, reenable on loongarch64

    changed title from Draft: testing/qstardict: fix build with clang 19, reenable on loongarch64 to Draft: testing/qstardict: fix build, reenable on loongarch64

  • mio added 1 commit

    added 1 commit

    • d40fc8c9 - testing/qstardict: fix build, reenable on loongarch64

    Compare with previous version

  • mio marked this merge request as ready

    marked this merge request as ready

  • merged

Please register or sign in to reply
Loading