NetworkManager/src/platform
Thomas Haller c1417087c8 platform: fix GCC warning about zero-length array in nmp_utils_ethtool_get_permanent_address()
GCC 10 complains about accesses to elements of zero-length arrays that
overlap other members of the same object:

  src/platform/nm-platform-utils.c: In function ‘nmp_utils_ethtool_get_permanent_address’:
  src/platform/nm-platform-utils.c:854:29: error: array subscript 0 is outside the bounds of an interior zero-length array ‘__u8[0]’ {aka ‘unsigned char[0]’} [-Werror=zero-length-bounds]
    854 |  if (NM_IN_SET (edata.e.data[0], 0, 0xFF)) {
  ./shared/nm-glib-aux/nm-macros-internal.h:731:20: note: in definition of macro ‘_NM_IN_SET_EVAL_N’

Fix this warning.

(cherry picked from commit d892a35395)
2020-02-10 13:34:33 +01:00
..
linux all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
tests platform/tests: skip team test when we fail to create team link 2019-12-02 17:34:51 +01:00
wifi all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
wpan all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-fake-platform.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-fake-platform.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-linux-platform.c platform/linux: add support for /31 prefixes on IPv4 point-to-point links 2020-01-07 17:15:25 +01:00
nm-linux-platform.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-netlink.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-netlink.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform-private.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform-utils.c platform: fix GCC warning about zero-length array in nmp_utils_ethtool_get_permanent_address() 2020-02-10 13:34:33 +01:00
nm-platform-utils.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform.c core: track whether IP addresses are external 2019-10-23 17:44:38 +02:00
nm-platform.h all: add support for "scope" attribute for IPv4 routes 2019-11-28 00:11:15 +01:00
nmp-netns.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-netns.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-object.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-object.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-rules-manager.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-rules-manager.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00