NetworkManager/src/platform
Thomas Haller 9848589fbf platform: avoid compiler warning in _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX()
Surisingly, the compiler may detect the remaining obj_type in
the default switch. Then, inlining nmp_class_from_type() it may detect
that this is only possible to hit with an out or range access to
_nmp_classes array.

Rework the code to avoid that compiler warning. It's either way not
supposed to happen.

Also, drop the default switch case and explicitly list the enum values.
Otherwise it is error prone to forget a switch case.
2020-02-22 12:09:56 +01:00
..
linux all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
tests all: use nm_utils_ifname_valid_kernel() instead of nm_utils_is_valid_iface_name() 2020-02-17 15:27:35 +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: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01: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: use nm_streq() instead of strcmp() 2020-02-21 15:31:22 +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 all: use nm_utils_ifname_valid_kernel() instead of nm_utils_is_valid_iface_name() 2020-02-17 15:27:35 +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 platform: don't assign meaning to NMLinkType numeric values 2020-02-21 15:31:22 +01:00
nm-platform.h platform: use C99 static array index in parameter of nm_platform_if_indextoname() 2020-02-10 19:11:50 +01:00
nmp-netns.c shared: drop _STATIC variant of macros that define functions 2020-02-13 17:17:07 +01:00
nmp-netns.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-object.c all: use _nm_utils_inet4_ntop() instead of nm_utils_inet4_ntop() 2020-01-28 11:17:41 +01:00
nmp-object.h platform: avoid compiler warning in _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX() 2020-02-22 12:09:56 +01: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