qemu-trivial
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]