Bug 1221028

Summary: GCC 14: xdm package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Jireš <michal.jires>
Component: X.OrgAssignee: Gfx Bugs <gfx-bugs>
Status: RESOLVED FIXED QA Contact: Gfx Bugs <gfx-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

Description Michal Jireš 2024-03-06 08:46:11 UTC
Building xdm with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/xdm/standard/x86_64

Due to (exhaustive list of errors):

chooser.c: In function ‘RebuildTable’:
chooser.c:280:26: error: passing argument 2 of ‘XawListChange’ from incompatible pointer type [-Wincompatible-pointer-types]
  280 |     XawListChange (list, newTable, size, 0, TRUE);
      |                          ^~~~~~~~
      |                          |
      |                          char **
In file included from chooser.c:59:
/usr/include/X11/Xaw/List.h:170:27: note: expected ‘const char **’ but argument is of type ‘char **’
  170 |  _Xconst char           **list,
      |                           ^

See the meta bug#1220571 for more info.
Comment 1 Stefan Dirsch 2024-03-06 09:28:22 UTC
Fixed.

https://build.opensuse.org/request/show/1155484