NetworkManager/src/dhcp
Thomas Haller a75dfc73e2
dhcp: workaround "maybe-uninitialized" in dhcp_event_cb()
With LTO we get a compiler warning:

    src/dhcp/nm-dhcp-systemd.c: In function dhcp_event_cb:
    src/dhcp/nm-dhcp-systemd.c:554: error: lease may be used uninitialized in this function [-Werror=maybe-uninitialized]
      554 |   r = sd_dhcp_lease_get_server_identifier (lease, &addr);
          |
    src/dhcp/nm-dhcp-systemd.c:528: note: lease was declared here
      528 |  sd_dhcp_lease *lease;
          |

Fixes: 7f217d0345 ('core: honor the ipv4.dhcp-reject-servers property')
2020-08-28 14:28:56 +02:00
..
tests core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
nm-dhcp-client-logging.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dhcp-client.c core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-client.h core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-dhclient-utils.c core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-dhclient-utils.h core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-dhclient.c core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-dhcpcanon.c all: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01:00
nm-dhcp-dhcpcd.c all: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01:00
nm-dhcp-helper-api.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-helper.c dhcp: cleanup build_signal_parameters() in nm-dhcp-helper 2020-04-30 11:20:12 +02:00
nm-dhcp-listener.c all: use nm_clear_pointer() instead of g_clear_pointer() 2020-03-23 11:22:38 +01:00
nm-dhcp-listener.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dhcp-manager.c core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-manager.h core: honor the ipv4.dhcp-reject-servers property 2020-08-26 17:28:45 +02:00
nm-dhcp-nettools.c dhcp: nettools: change event handler signature 2020-08-26 17:28:45 +02:00
nm-dhcp-options.c dhcp: export the DHCPv6 FQDN option 2020-08-06 10:16:09 +02:00
nm-dhcp-options.h core: add support for dhcpv4 vendor class identifier option 2020-08-26 09:44:09 +02:00
nm-dhcp-systemd.c dhcp: workaround "maybe-uninitialized" in dhcp_event_cb() 2020-08-28 14:28:56 +02:00
nm-dhcp-utils.c dhcp: cleanup "nm-dhcp-utils.c" 2020-08-05 12:47:55 +02:00
nm-dhcp-utils.h dhcp: test parsing of domain-search option 2019-12-23 16:19:35 +01:00