diff options
author | Stefan Weil | 2011-12-17 09:27:29 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2011-12-19 12:03:42 +0100 |
commit | 75cafad74d8df3f8ea188ed355127b91c9903290 (patch) | |
tree | 0cfa412785599f89e5f3a176eeaa14c207fd7f23 /configure | |
parent | Also create piix3 property when Xen is enabled (diff) | |
download | qemu-75cafad74d8df3f8ea188ed355127b91c9903290.tar.gz qemu-75cafad74d8df3f8ea188ed355127b91c9903290.tar.xz qemu-75cafad74d8df3f8ea188ed355127b91c9903290.zip |
configure: Fix compiler warnings in config.log (always return a value from main)
Fix several "warning: control reaches end of non-void function".
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1082,7 +1082,7 @@ fi # check that the C compiler works. cat > $TMPC <<EOF -int main(void) {} +int main(void) { return 0; } EOF if compile_object ; then @@ -2651,7 +2651,7 @@ ucontext_coroutine=no if test "$darwin" != "yes"; then cat > $TMPC << EOF #include <ucontext.h> -int main(void) { makecontext(0, 0, 0); } +int main(void) { makecontext(0, 0, 0); return 0; } EOF if compile_prog "" "" ; then ucontext_coroutine=yes @@ -2664,7 +2664,7 @@ fi open_by_hande_at=no cat > $TMPC << EOF #include <fcntl.h> -int main(void) { struct file_handle fh; open_by_handle_at(0, &fh, 0); } +int main(void) { struct file_handle fh; return open_by_handle_at(0, &fh, 0); } EOF if compile_prog "" "" ; then open_by_handle_at=yes @@ -2677,6 +2677,7 @@ linux_magic_h=no cat > $TMPC << EOF #include <linux/magic.h> int main(void) { + return 0; } EOF if compile_prog "" "" ; then |