Commit 582054f
fix: Fix incompatible function pointer types with g_timeout_add_full on GCC 15
GCC 15 enforces stricter type checking for function pointers, which caused
compilation errors when passing `handle_tap` and `handle_tap_destroy` to
`g_timeout_add_full`. These functions were declared without parameters,
but must match the expected signatures:
- GSourceFunc: gboolean (*)(gpointer)
- GDestroyNotify: void (*)(gpointer)
Log: This patch updates the function signatures to ensure compatibility
without changing their runtime behavior, as the `gpointer` parameter
is unused in both functions.1 parent dc72a9b commit 582054f
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
| 699 | + | |
0 commit comments