Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • GIMP GIMP
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.9k
    • Issues 3.9k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 96
    • Merge requests 96
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GIMPGIMP
  • Issues
  • #8649
Closed
Open
Issue created Sep 23, 2022 by Daniel Novomeský@dnovomeskyDeveloper

Clang 15 build error (incompatible pointer to integer conversion)

Hello,

MSYS2 started to use Clang 15 and they attempted to re-build GIMP 2.10.32 and 2.99.12

There is a warning which turned to error in Clang 15:

 ../../gimp-2.10.32/libgimp/gimpprogressbar.c:192:12: error: incompatible pointer to integer conversion returning 'HGDIOBJ' (aka 'void *') from a function with result type 'guint32' (aka 'unsigned int') [-Wint-conversion]
      return GDK_WINDOW_HWND (gtk_widget_get_window (GTK_WIDGET (window)));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"The -Wint-conversion warning diagnostic for implicit int <-> pointer conversions now defaults to an error in all C language modes. It may be downgraded to a warning with -Wno-error=int-conversion, or disabled entirely with -Wno-int-conversion."

https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html

How we could fix this in the source code beside tweaking the compiler flags?

Assignee
Assign to
Time tracking