3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-24 15:22:34 +01:00
iwd/wired
Sergei Trofimovich 901305dcdd wired: fix -std=c23 build failure
gcc-15 switched to -std=c23 by default:

    https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212

As a result `iwd` fails the build as:

    wired/ethdev.c: In function 'pae_open':
    wired/ethdev.c:340:55:
      error: passing argument 4 of 'l_io_set_read_handler'
        from incompatible pointer type [-Wincompatible-pointer-types]
      340 |         l_io_set_read_handler(pae_io, pae_read, NULL, pae_destroy);
          |                                                       ^~~~~~~~~~~
          |                                                       |
          |                                                       void (*)(void)
    In file included from ...-ell-0.70-dev/include/ell/ell.h:19,
                     from wired/ethdev.c:38:
    ...-ell-0.70-dev/include/ell/io.h:33:68:
      note: expected 'l_io_destroy_cb_t' {aka 'void (*)(void *)'}
        but argument is of type 'void (*)(void)'
       33 |                                 void *user_data, l_io_destroy_cb_t destroy);
          |                                                  ~~~~~~~~~~~~~~~~~~^~~~~~~

C23 changed the meaning of `void (*)()` from partially defined prototype
to `void (*)(void)`.
2024-11-20 11:34:03 -06:00
..
dbus.c wired: Update to the new ell api 2019-10-28 15:48:04 -05:00
dbus.h wired: Introduce EAD_BASE_PATH 2019-10-28 15:48:12 -05:00
ead-dbus.conf dbus: ead: Remove at_console usage 2022-01-31 14:04:15 -06:00
ead.rst build: Add skeleton manual pages for all installed binaries 2019-09-22 21:57:47 +02:00
ead.service.in build: Add documention of manual pages to systemd service file 2022-11-18 10:50:31 +01:00
ethdev.c wired: fix -std=c23 build failure 2024-11-20 11:34:03 -06:00
ethdev.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
main.c wired: Utilize module system for daemon init 2019-11-07 23:59:54 +01:00
net.connman.ead.service build: Add systemd service configuration for Ethernet daemon 2018-09-14 14:09:53 +02:00
network.c wired: check return of l_settings_load_from_file 2022-03-18 11:34:44 -05:00
network.h wired: Utilize module system for daemon init 2019-11-07 23:59:54 +01:00