NetworkManager/libnm
Thomas Haller 351cf9b328 libnm: fix warning about returning zero instead of %NULL in _nm_object_create()
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: b3c4917b0f
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-09-22 16:32:01 +02:00
..
tests libnm: port to GDBus 2014-09-18 11:51:09 -04:00
libnm.pc.in libnm: add libnm/libnm-core (part 2) 2014-08-01 14:34:04 -04:00
libnm.ver libnm: port to GDBus 2014-09-18 11:51:09 -04:00
Makefile.am libnm: port to GDBus 2014-09-18 11:51:09 -04:00
NetworkManager.h libnm: fix NMIP4Config/NMIP6Config addresses/routes properties 2014-09-04 09:21:05 -04:00
nm-access-point.c libnm: fix nm_access_point_get_ssid() return value 2014-09-19 09:06:20 -04:00
nm-access-point.h libnm: drop NM_TYPE_SSID, use G_TYPE_BYTES 2014-09-04 09:21:04 -04:00
nm-active-connection.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-active-connection.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-client.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-client.h all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-dbus-helpers.c libnm: simplify private D-Bus connection tracking 2014-09-19 10:45:12 -04:00
nm-dbus-helpers.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-device-adsl.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-adsl.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-bond.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-bond.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-bridge.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-bridge.h trivial: remove a stray prototype 2014-08-27 13:04:04 -04:00
nm-device-bt.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-bt.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-ethernet.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-ethernet.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-generic.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-generic.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-infiniband.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-infiniband.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-modem.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-modem.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-olpc-mesh.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-olpc-mesh.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-private.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-team.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-team.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-vlan.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-device-vlan.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-wifi.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-device-wifi.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-wimax.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-device-wimax.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-device.h libnm: simplify NMDevice:state-reason 2014-09-04 09:21:04 -04:00
nm-dhcp4-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-dhcp4-config.h all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-dhcp6-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-dhcp6-config.h all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-ip4-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-ip4-config.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-ip6-config.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-ip6-config.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-object-cache.c libnm: add libnm/libnm-core (part 1) 2014-08-01 14:34:04 -04:00
nm-object-cache.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-object-private.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-object.c libnm: fix warning about returning zero instead of %NULL in _nm_object_create() 2014-09-22 16:32:01 +02:00
nm-object.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-remote-connection-private.h libnm: add libnm/libnm-core (part 1) 2014-08-01 14:34:04 -04:00
nm-remote-connection.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-remote-connection.h libnm-core: change connection hash tables to variants in API 2014-09-18 11:51:09 -04:00
nm-remote-settings.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-remote-settings.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-secret-agent.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-secret-agent.h libnm-core: change connection hash tables to variants in API 2014-09-18 11:51:09 -04:00
nm-vpn-connection.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-vpn-connection.h all: remove a bunch of unnecessary dbus/dbus-glib includes 2014-09-03 10:45:24 -04:00
nm-vpn-plugin-ui-interface.c libnm: merge libnm-vpn into libnm 2014-09-18 11:51:07 -04:00
nm-vpn-plugin-ui-interface.h libnm: merge libnm-vpn into libnm 2014-09-18 11:51:07 -04:00
nm-vpn-plugin-utils.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-vpn-plugin-utils.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-vpn-plugin.c libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-vpn-plugin.h libnm: port to GDBus 2014-09-18 11:51:09 -04:00
nm-wimax-nsp.c libnm: let NMObject create all D-Bus proxies 2014-09-18 11:51:08 -04:00
nm-wimax-nsp.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00