From: Stefan Weil Date: Sat, 17 Dec 2011 08:27:29 +0000 (+0100) Subject: configure: Fix compiler warnings in config.log (always return a value from main) X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=75cafad74d8df3f8ea188ed355127b91c9903290;p=qemu-xen-4.3-testing.git 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 Signed-off-by: Stefan Hajnoczi --- diff --git a/configure b/configure index 6fd580e3a..03b8f3574 100755 --- a/configure +++ b/configure @@ -1082,7 +1082,7 @@ fi # check that the C compiler works. cat > $TMPC < $TMPC << EOF #include -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 -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 int main(void) { + return 0; } EOF if compile_prog "" "" ; then