[Bug 268812] x11-toolkits/gtk-sharp20: fix build with clang 15

2023-01-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268812

Dimitry Andric  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|New |Closed

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268812] x11-toolkits/gtk-sharp20: fix build with clang 15

2023-01-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268812

--- Comment #2 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=a68bb8c9a0929cbe02e99640479b728b4b916f31

commit a68bb8c9a0929cbe02e99640479b728b4b916f31
Author: Dimitry Andric 
AuthorDate: 2023-01-07 14:55:25 +
Commit: Dimitry Andric 
CommitDate: 2023-01-16 19:04:47 +

x11-toolkits/gtk-sharp20: fix build with clang 15

During an exp-run for llvm 15 (see bug 265425), it turned out that
x11-toolkits/gtk-sharp20 failed to build with clang 15:

  windowmanager.c:113:12: error: incompatible integer to pointer conversion
assigning to 'gpointer' (aka 'void *') from 'long' [-Wint-conversion]
  list [i] = data [i];
   ^ 

This is because gdk_property_get() always returns an array of longs, and
these have to be cast to whatever the desired outcome type is.

PR: 268812
Approved by:portmgr (tcberner)
MFH:2023Q1

 .../gtk-sharp20/files/patch-gdk_glue_windowmanager.c (new)| 11 +++
 1 file changed, 11 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268812] x11-toolkits/gtk-sharp20: fix build with clang 15

2023-01-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268812

Dimitry Andric  changed:

   What|Removed |Added

 Blocks||265425


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265425
[Bug 265425] [exp-run] Against llvm-15-update branch on GitHub
-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268812] x11-toolkits/gtk-sharp20: fix build with clang 15

2023-01-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268812

--- Comment #1 from Dimitry Andric  ---
Created attachment 239329
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239329=edit
x11-toolkits/gtk-sharp20: fix build with clang 15

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268812] x11-toolkits/gtk-sharp20: fix build with clang 15

2023-01-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268812

Bug ID: 268812
   Summary: x11-toolkits/gtk-sharp20: fix build with clang 15
   Product: Ports & Packages
   Version: Latest
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Some People
  Priority: ---
 Component: Individual Port(s)
  Assignee: m...@freebsd.org
  Reporter: d...@freebsd.org
 Flags: maintainer-feedback?(m...@freebsd.org)
  Assignee: m...@freebsd.org

During an exp-run for llvm 15 (see bug 265425), it turned out that
x11-toolkits/gtk-sharp20 failed to build with clang 15:

  windowmanager.c:113:12: error: incompatible integer to pointer conversion
assigning to 'gpointer' (aka 'void *') from 'long' [-Wint-conversion]
  list [i] = data [i];
   ^ 

This is because gdk_property_get() always returns an array of longs, and these
have to be cast to whatever the desired outcome type is.

-- 
You are receiving this mail because:
You are the assignee for the bug.


maintainer-feedback requested: [Bug 268812] x11-toolkits/gtk-sharp20: fix build with clang 15

2023-01-07 Thread bugzilla-noreply
Bugzilla Automation  has asked freebsd-mono (Nobody)
 for maintainer-feedback:
Bug 268812: x11-toolkits/gtk-sharp20: fix build with clang 15
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268812



--- Description ---
During an exp-run for llvm 15 (see bug 265425), it turned out that
x11-toolkits/gtk-sharp20 failed to build with clang 15:

  windowmanager.c:113:12: error: incompatible integer to pointer conversion
assigning to 'gpointer' (aka 'void *') from 'long' [-Wint-conversion]
  list [i] = data [i];
   ^ 

This is because gdk_property_get() always returns an array of longs, and these
have to be cast to whatever the desired outcome type is.