From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbAS-0000rB-Aw for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:14:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcbAL-0002OB-QR for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:14:04 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:46755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbAL-0002Nj-HE for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:13:57 -0500 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Dec 2011 11:13:56 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBJBDrV62822186 for ; Mon, 19 Dec 2011 11:13:53 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBJBDrmZ014273 for ; Mon, 19 Dec 2011 04:13:53 -0700 From: Stefan Hajnoczi Date: Mon, 19 Dec 2011 11:12:28 +0000 Message-Id: <1324293158-25433-8-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 07/17] configure: Fix compiler warnings in config.log (always return a value from main) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Anthony Liguori , Stefan Hajnoczi From: Stefan Weil Fix several "warning: control reaches end of non-void function". Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 6fd580e..03b8f35 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 -- 1.7.7.3