History | View | Annotate | Download (2.9 kB)
error.c: don't return value for void function
It is invalid to return a value from a functionreturning void.
[C99 6.8.6.4 says "A return statement with an expression shall notappear in a function whose return type is void" but gcc 4.6.3 with QEMUcompile flags does not complain. It's still worth fixing this. Stefan]...
Error: Introduce error_copy()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Drop qemu-objects.h from modules that don't require it
Previous commits dropped most qobjects usage from qemu modules(now they are a low level interface used by the QAPI). However,some modules still include the qemu-objects.h header file.
This commit drops qemu-objects.h from some of those modules...
error: let error_is_type take a NULL error
Reported-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
error framework: Fix compilation for w32/w64
The declaration of function error_set() should use macro GCC_FMT_ATTRinstead of gcc's format printf attribute.
For w32/w64, both declarations are different and GCC_FMT_ATTR is needed.Compilation for w64 even failed with the original code because mingw64...
Introduce the new error framework
New error-handling framework that allows for exception-like errorpropagation.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>