Bug 1221710 - GCC 14: xf86-input-evdev package fails
Summary: GCC 14: xf86-input-evdev package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Current
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: Gfx Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 12:39 UTC by Michal Jireš
Modified: 2024-03-19 15:35 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jireš 2024-03-19 12:39:11 UTC
Building xf86-input-evdev with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/xf86-input-evdev/standard/x86_64

Due to (exhaustive list of errors):

kioskTouch.c: In function 'EvdevKioskTouchOn':
kioskTouch.c:285:37: error: passing argument 1 of 'RegisterBlockAndWakeupHandlers' from incompatible pointer type [-Wincompatible-pointer-types]
  285 |     RegisterBlockAndWakeupHandlers (EvdevKioskTouchBlockHandler,
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     void (*)(void *, struct timeval **, void *)
In file included from /usr/include/xorg/privates.h:151,
                 from /usr/include/xorg/cursor.h:53,
                 from /usr/include/xorg/scrnintstr.h:53,
                 from /usr/include/xorg/xf86str.h:39,
                 from /usr/include/xorg/xf86.h:44:
/usr/include/xorg/dix.h:252:80: note: expected 'ServerBlockHandlerProcPtr' {aka 'void (*)(void *, void *)'} but argument is of type 'void (*)(void *, struct timeval **, void *)'
  252 | extern _X_EXPORT Bool RegisterBlockAndWakeupHandlers(ServerBlockHandlerProcPtr blockHandler,
      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
kioskTouch.c:286:37: error: passing argument 2 of 'RegisterBlockAndWakeupHandlers' from incompatible pointer type [-Wincompatible-pointer-types]
  286 |                                     EvdevKioskTouchWakeupHandler,
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     void (*)(void *, int,  void *)
/usr/include/xorg/dix.h:253:81: note: expected 'ServerWakeupHandlerProcPtr' {aka 'void (*)(void *, int)'} but argument is of type 'void (*)(void *, int,  void *)'
  253 |                                                      ServerWakeupHandlerProcPtr wakeupHandler,
      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
kioskTouch.c: In function 'EvdevKioskTouchFinalize':
kioskTouch.c:298:35: error: passing argument 1 of 'RemoveBlockAndWakeupHandlers' from incompatible pointer type [-Wincompatible-pointer-types]
  298 |     RemoveBlockAndWakeupHandlers (EvdevKioskTouchBlockHandler,
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   void (*)(void *, struct timeval **, void *)
/usr/include/xorg/dix.h:256:78: note: expected 'ServerBlockHandlerProcPtr' {aka 'void (*)(void *, void *)'} but argument is of type 'void (*)(void *, struct timeval **, void *)'
  256 | extern _X_EXPORT void RemoveBlockAndWakeupHandlers(ServerBlockHandlerProcPtr blockHandler,
      |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
kioskTouch.c:299:35: error: passing argument 2 of 'RemoveBlockAndWakeupHandlers' from incompatible pointer type [-Wincompatible-pointer-types]
  299 |                                   EvdevKioskTouchWakeupHandler,
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   void (*)(void *, int,  void *)
/usr/include/xorg/dix.h:257:79: note: expected 'ServerWakeupHandlerProcPtr' {aka 'void (*)(void *, int)'} but argument is of type 'void (*)(void *, int,  void *)'
  257 |                                                    ServerWakeupHandlerProcPtr wakeupHandler,
      |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~



See the meta bug#1220571 for more info.
Comment 1 Stefan Dirsch 2024-03-19 13:58:00 UTC
fixed and submitted to factory now.
Comment 2 OBSbugzilla Bot 2024-03-19 15:35:05 UTC
This is an autogenerated message for OBS integration:
This bug (1221710) was mentioned in
https://build.opensuse.org/request/show/1159569 Factory / xf86-input-evdev