NetworkManager/shared
Thomas Haller 4686e9baef
n-dhcp4: work around compiler warning in n_dhcp4_socket_packet_send()
With LTO enabled, the compiler might think that "len" is not initialized.
That is even a correct assumption, if the compiler does not understand the
API of sendmsg() and that sendmsg() is supposed to set a negative errno.

Work around by initializing the variable.

    shared/n-dhcp4/src/n-dhcp4-c-connection.c: In function n_dhcp4_c_connection_send_request:
    shared/n-dhcp4/src/n-dhcp4-socket.c:368:19: error: len may be used uninitialized in this function [-Werror=maybe-uninitialized]
             } else if (len != n_buf) {
                       ^
    shared/n-dhcp4/src/n-dhcp4-socket.c:351:23: note: len was declared here
             size_t n_buf, len;
                           ^
2021-01-11 19:03:28 +01:00
..
c-list shared/c-list: reimport 2020-06-03 22:00:56 +02:00
c-rbtree shared/c-rbtree: reimport 2020-10-21 10:40:29 +02:00
c-siphash all: fix minor typos 2020-07-07 11:33:46 +02:00
c-stdaux all: fix minor typos 2020-07-07 11:33:46 +02:00
n-acd all: fix minor typos 2020-07-07 11:33:46 +02:00
n-dhcp4 n-dhcp4: work around compiler warning in n_dhcp4_socket_packet_send() 2021-01-11 19:03:28 +01:00
nm-glib-aux shared: avoid compiler warning for nm_utils_get_next_realloc_size() returning huge sizes 2021-01-11 19:03:28 +01:00
nm-std-aux shared: avoid compiler warning for nm_utils_get_next_realloc_size() returning huge sizes 2021-01-11 19:03:28 +01:00
nm-udev-aux all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-utils all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
systemd all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
meson.build all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-default.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-meta-setting.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-meta-setting.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-test-libnm-utils.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-test-utils-impl.c all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-version-macros.h.in all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00