mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 20:30:08 +01:00
clang warns:
make[4]: Entering directory `./NetworkManager/libnm'
CC nm-object.lo
nm-object.c:640:11: error: expression which evaluates to zero treated as a null pointer constant of type 'GObject *' (aka 'struct _GObject *') [-Werror,-Wnon-literal-null-conversion]
return G_TYPE_INVALID;
^~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:57:26: note: expanded from macro 'G_TYPE_INVALID'
#define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:221:36: note: expanded from macro 'G_TYPE_MAKE_FUNDAMENTAL'
#define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nm-object.c:655:11: error: expression which evaluates to zero treated as a null pointer constant of type 'GObject *' (aka 'struct _GObject *') [-Werror,-Wnon-literal-null-conversion]
return G_TYPE_INVALID;
^~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:57:26: note: expanded from macro 'G_TYPE_INVALID'
#define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:221:36: note: expanded from macro 'G_TYPE_MAKE_FUNDAMENTAL'
#define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
Fixes:
|
||
|---|---|---|
| .. | ||
| tests | ||
| libnm.pc.in | ||
| libnm.ver | ||
| Makefile.am | ||
| NetworkManager.h | ||
| nm-access-point.c | ||
| nm-access-point.h | ||
| nm-active-connection.c | ||
| nm-active-connection.h | ||
| nm-client.c | ||
| nm-client.h | ||
| nm-dbus-helpers.c | ||
| nm-dbus-helpers.h | ||
| nm-device-adsl.c | ||
| nm-device-adsl.h | ||
| nm-device-bond.c | ||
| nm-device-bond.h | ||
| nm-device-bridge.c | ||
| nm-device-bridge.h | ||
| nm-device-bt.c | ||
| nm-device-bt.h | ||
| nm-device-ethernet.c | ||
| nm-device-ethernet.h | ||
| nm-device-generic.c | ||
| nm-device-generic.h | ||
| nm-device-infiniband.c | ||
| nm-device-infiniband.h | ||
| nm-device-modem.c | ||
| nm-device-modem.h | ||
| nm-device-olpc-mesh.c | ||
| nm-device-olpc-mesh.h | ||
| nm-device-private.h | ||
| nm-device-team.c | ||
| nm-device-team.h | ||
| nm-device-vlan.c | ||
| nm-device-vlan.h | ||
| nm-device-wifi.c | ||
| nm-device-wifi.h | ||
| nm-device-wimax.c | ||
| nm-device-wimax.h | ||
| nm-device.c | ||
| nm-device.h | ||
| nm-dhcp4-config.c | ||
| nm-dhcp4-config.h | ||
| nm-dhcp6-config.c | ||
| nm-dhcp6-config.h | ||
| nm-ip4-config.c | ||
| nm-ip4-config.h | ||
| nm-ip6-config.c | ||
| nm-ip6-config.h | ||
| nm-object-cache.c | ||
| nm-object-cache.h | ||
| nm-object-private.h | ||
| nm-object.c | ||
| nm-object.h | ||
| nm-remote-connection-private.h | ||
| nm-remote-connection.c | ||
| nm-remote-connection.h | ||
| nm-remote-settings.c | ||
| nm-remote-settings.h | ||
| nm-secret-agent.c | ||
| nm-secret-agent.h | ||
| nm-vpn-connection.c | ||
| nm-vpn-connection.h | ||
| nm-vpn-plugin-ui-interface.c | ||
| nm-vpn-plugin-ui-interface.h | ||
| nm-vpn-plugin-utils.c | ||
| nm-vpn-plugin-utils.h | ||
| nm-vpn-plugin.c | ||
| nm-vpn-plugin.h | ||
| nm-wimax-nsp.c | ||
| nm-wimax-nsp.h | ||