libvirt/src/util
Eric Blake 682c79c4f5 build: allow virObject to have no parent
When building with static analysis enabled, we turn on attribute
nonnull checking.  However, this caused the build to fail with:

../../src/util/virobject.c: In function 'virObjectOnceInit':
../../src/util/virobject.c:55:40: error: null argument where non-null required (argument 1) [-Werror=nonnull]

Creation of the virObject class is the one instance where the
parent class is allowed to be NULL.  Making things conditional
will let us keep static analysis checking for all other .c file
callers, without breaking the build on this one exception.

* src/util/virobject.c: Define witness.
* src/util/virobject.h (virClassNew): Use it to force most callers
to pass non-null parameter.
2013-01-22 13:45:38 -07:00
..
iohelper.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
keymaps.csv
viralloc.c Rename memory.{c,h} to viralloc.{c,h} 2012-12-21 11:17:14 +00:00
viralloc.h viralloc: Adjust definition of VIR_FREE() for Coverity 2013-01-22 10:19:43 -07:00
virarch.c Rename logging.{c,h} to virlog.{c,h} 2012-12-21 11:17:14 +00:00
virarch.h Introduce a set of APIs for managing architectures 2012-12-18 16:53:02 +00:00
viratomic.c
viratomic.h
viraudit.c Convert HAVE_AUDIT to WITH_AUDIT 2013-01-11 11:03:23 +00:00
viraudit.h
virauth.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virauth.h
virauthconfig.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virauthconfig.h
virbitmap.c xen: Resolve resource leak with 'cpuset' 2013-01-15 14:50:35 +01:00
virbitmap.h Rename bitmap.{c,h} to virbitmap.{c,h} 2012-12-21 11:17:12 +00:00
virbuffer.c util: Check for negative indent in virBufferAdd 2013-01-16 10:52:39 +01:00
virbuffer.h Rename buf.{c,h} to virbuffer.{c,h} 2012-12-21 11:17:12 +00:00
vircgroup.c Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
vircgroup.h include util.h in cgroup.h 2013-01-16 17:23:58 -07:00
vircommand.c Convert HAVE_CAPNG to WITH_CAPNG 2013-01-14 13:25:06 +00:00
vircommand.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virconf.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virconf.h Rename conf.{c,h} to virconf.{c,h} 2012-12-21 11:17:13 +00:00
virdbus.c Convert HAVE_DBUS to WITH_DBUS 2013-01-14 13:25:47 +00:00
virdbus.h Convert HAVE_DBUS to WITH_DBUS 2013-01-14 13:25:47 +00:00
virdnsmasq.c Allow for multi-level inheritance of virObject classes 2013-01-15 19:21:31 +00:00
virdnsmasq.h Rename dnsmasq.{c,h} to virdnsmasq.{c,h} 2012-12-21 11:17:13 +00:00
virebtables.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virebtables.h Rename ebtables.{c,h} to virebtables.{c,h} 2012-12-21 11:17:13 +00:00
virerror.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virerror.h Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virevent.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virevent.h Rename event.{c,h} to virevent.{c,h} 2012-12-21 11:17:13 +00:00
vireventpoll.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
vireventpoll.h Rename event_poll.{c,h} to vireventpoll.{c,h} 2012-12-21 11:17:13 +00:00
virfile.c virfile: Need to initialize 'looppath' 2013-01-22 17:29:25 +01:00
virfile.h
virhash.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virhash.h
virhashcode.c
virhashcode.h
virhook.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virhook.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virinitctl.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virinitctl.h Add APIs for talking to init via /dev/initctl 2012-11-30 19:17:30 +00:00
viriptables.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
viriptables.h Rename iptables.{c,h} to viriptables.{c,h} 2012-12-21 11:17:13 +00:00
virjson.c Convert HAVE_YAJL into WITH_YAJL 2013-01-11 11:03:22 +00:00
virjson.h Rename json.{c,h} to virjson.{c,h} 2012-12-21 11:17:13 +00:00
virkeycode-mapgen.py
virkeycode.c
virkeycode.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virkeyfile.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virkeyfile.h
virlockspace.c util: Need to check child JSON allocation before use 2013-01-22 14:34:12 +01:00
virlockspace.h Rename json.{c,h} to virjson.{c,h} 2012-12-21 11:17:13 +00:00
virlog.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virlog.h Rename logging.{c,h} to virlog.{c,h} 2012-12-21 11:17:14 +00:00
virmacaddr.c
virmacaddr.h
virnetdev.c virnetdev: Need to initialize 'pciConfigAddr' 2013-01-22 17:29:25 +01:00
virnetdev.h Rename pci.{c,h} to virpci.{c,h} 2012-12-21 11:17:14 +00:00
virnetdevbandwidth.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevbandwidth.h bandwidth: Create rate update function 2012-12-11 18:36:55 +01:00
virnetdevbridge.c build: further fixes for broken if_bridge.h 2013-01-14 21:08:23 -07:00
virnetdevbridge.h
virnetdevmacvlan.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevmacvlan.h
virnetdevopenvswitch.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevopenvswitch.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virnetdevtap.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevtap.h
virnetdevveth.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevveth.h
virnetdevvlan.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevvlan.h
virnetdevvportprofile.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetdevvportprofile.h Rename uuid.{c,h} to viruuid.{c,h} 2012-12-21 11:19:49 +00:00
virnetlink.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnetlink.h
virnodesuspend.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virnodesuspend.h
virobject.c build: allow virObject to have no parent 2013-01-22 13:45:38 -07:00
virobject.h build: allow virObject to have no parent 2013-01-22 13:45:38 -07:00
virpci.c pass stub driver name instead of pciFindStubDriver 2013-01-10 11:30:09 -05:00
virpci.h pass stub driver name instead of pciFindStubDriver 2013-01-10 11:30:09 -05:00
virpidfile.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virpidfile.h
virportallocator.c build: fix build on BSD 2013-01-17 16:39:10 -07:00
virportallocator.h Add a port allocator class 2013-01-16 11:02:58 +00:00
virprocess.c Add internal APIs for dealing with namespaces 2013-01-08 09:21:08 +00:00
virprocess.h Add internal APIs for dealing with namespaces 2013-01-08 09:21:08 +00:00
virrandom.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virrandom.h
virsexpr.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virsexpr.h Rename sexpr.{c,h} to virsexpr.{c,h} 2012-12-21 11:19:48 +00:00
virsocketaddr.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virsocketaddr.h
virstatslinux.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virstatslinux.h Rename stats_linux.{c,h} to virstatslinux.{c,h} 2012-12-21 11:19:48 +00:00
virstoragefile.c Convert HAVE_UDEV to WITH_UDEV 2013-01-14 13:26:47 +00:00
virstoragefile.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virstring.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virstring.h Introduce APIs for splitting/joining strings 2012-11-30 20:05:43 +00:00
virsysinfo.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virsysinfo.h Rename util.{c,h} to virutil.{c,h} 2012-12-21 11:19:49 +00:00
virthread.c Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virthread.h include virterror_internal.h in threads.h 2013-01-16 17:30:22 -07:00
virthreadpool.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virthreadpool.h Rename threadpool.{c,h} to virthreadpool.{c,h} 2012-12-21 11:19:48 +00:00
virthreadpthread.c Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virthreadpthread.h Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virthreadwin32.c Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virthreadwin32.h Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
virtime.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virtime.h
virtypedparam.c Introduce virTypedParamsClear public API 2013-01-18 15:04:00 +01:00
virtypedparam.h Introduce virTypedParamsClear public API 2013-01-18 15:04:00 +01:00
viruri.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
viruri.h
virusb.c util: Check for NULL 'dev' on input to usbFreeDevice 2013-01-08 08:45:40 -07:00
virusb.h Rename hostusb.{c,h} to virusb.{c,h} 2012-12-21 11:17:13 +00:00
virutil.c safe{read,write}: Document usage with nonblocking FD 2013-01-21 20:18:28 +01:00
virutil.h qemu: set unpriv_sgio when starting domain and attaching disk 2013-01-07 21:39:06 +08:00
viruuid.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
viruuid.h Rename uuid.{c,h} to viruuid.{c,h} 2012-12-21 11:19:49 +00:00
virxml.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
virxml.h Rename xml.{c,h} to virxml.{c,h} 2012-12-21 11:19:50 +00:00