error.c: don't return value for void function
commit0ed6dc1a982fd029557a17fda7606d679a6ebb28
authorAmos Kong <akong@redhat.com>
Mon, 16 Apr 2012 07:32:49 +0000 (16 15:32 +0800)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 20 Apr 2012 12:14:53 +0000 (20 13:14 +0100)
tree86085f5f5086c965bca6f86fb0a61ef9fb74985e
parent51006bbc45bc74977ae538190a53df2af534acb9
error.c: don't return value for void function

It is invalid to return a value from a function
returning void.

[C99 6.8.6.4 says "A return statement with an expression shall not
appear in a function whose return type is void" but gcc 4.6.3 with QEMU
compile flags does not complain.  It's still worth fixing this.  Stefan]

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
error.c