[MacPorts] #70956: Togl-2.0 @2.0: error: incompatible function pointer types assigning to 'void (*)(Tk_Window, Tk_ClassProcs *, ClientData)' (aka 'void (*)(struct Tk_Window_ *, struct Tk_ClassProcs *, void *)') from 'void (*const)(Tk_Window, const Tk_ClassProcs *, ClientData)' (aka 'void (*const)(struct Tk_Window_ *, const struct Tk_ClassProcs *, void *)') [-Wincompatible-function-pointer-types]

MacPorts noreply at macports.org
Thu Oct 3 12:16:55 UTC 2024


#70956: Togl-2.0 @2.0: error: incompatible function pointer types assigning to
'void (*)(Tk_Window, Tk_ClassProcs *, ClientData)' (aka 'void (*)(struct
Tk_Window_ *, struct Tk_ClassProcs *, void *)') from 'void
(*const)(Tk_Window, const Tk_ClassProcs *, ClientData)' (aka 'void
(*const)(struct Tk_Window_ *, const struct Tk_ClassProcs *, void *)')
[-Wincompatible-function-pointer-types]
-----------------------+----------------------
  Reporter:  arai-kai  |      Owner:  dstrubbe
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.10.1
Resolution:            |   Keywords:  sequoia
      Port:  Togl-2.0  |
-----------------------+----------------------

Comment (by Chengcheng-Xiao):

 This error can be ignored by adding `-Wno-error=incompatible-pointer-
 types` to `CFLAGS` in `TOGL_OPTIONS` in `Make.sys`. While I'm not sure if
 it's safe to do so, with this fix, xcrysden can be built and I haven't
 found any thing out of the ordinary. Hope this helps.

-- 
Ticket URL: <https://trac.macports.org/ticket/70956#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list