[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 03/11] configure: Fix compiler
From: |
Peter Maydell |
Subject: |
Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 03/11] configure: Fix compiler warning in config.log (integer from pointer) |
Date: |
Sat, 17 Dec 2011 16:57:39 +0000 |
On 17 December 2011 16:46, Stefan Weil <address@hidden> wrote:
> warning: return makes integer from pointer without a cast
>
> v2: Removed type cast.
>
> Signed-off-by: Stefan Weil <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
> ---
> configure | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 93c6cbe..773df6a 100755
> --- a/configure
> +++ b/configure
> @@ -1841,7 +1841,11 @@ if test "$curses" != "no" ; then
> #ifdef __OpenBSD__
> #define resize_term resizeterm
> #endif
> -int main(void) { resize_term(0, 0); return curses_version(); }
> +int main(void) {
> + const char *s = curses_version();
> + resize_term(0, 0);
> + return s != 0;
> +}
> EOF
> for curses_lib in $curses_list; do
> if compile_prog "" "$curses_lib" ; then
> --
> 1.7.2.5
>
>
--
12345678901234567890123456789012345678901234567890123456789012345678901234567890
1 2 3 4 5 6 7 8
[Qemu-trivial] [PATCH 02/11] configure: Fix compiler warnings in config.log (old-style function definition), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 04/11] configure: Fix compiler warnings in config.log (null arguments), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 05/11] configure: Fix compiler warning in config.log (unused variable), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 09/11] configure: Fix compiler warning in config.log (value was never used), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 08/11] configure: Fix compiler warning in config.log (undefined NULL), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 11/11] configure: Improve Xen autodetection for hosts without Xen, Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 10/11] configure: Fix compiler warnings in config.log (statement without effect), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 07/11] configure: Fix compiler warnings in config.log (uninitialized variable), Stefan Weil, 2011/12/17
[Qemu-trivial] [PATCH 06/11] configure: Fix compiler warning in config.log (macro redefined), Stefan Weil, 2011/12/17
Re: [Qemu-trivial] [Qemu-devel] [PATCH 00/11] configure: Fix compiler warnings in config.log, Peter Maydell, 2011/12/17