[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wint_t in printf-args.c under mingw32

From: Bruno Haible
Subject: Re: wint_t in printf-args.c under mingw32
Date: Sun, 11 Feb 2007 23:53:30 +0100
User-agent: KMail/1.5.4

Ben Pfaff wrote:
> While compiling GNU PSPP under mingw32, for portability testing
> purposes, I noticed an error from printf-args.c in gnulib:
> ../../intl/printf-args.c: In function `printf_fetchargs':
> ../../intl/printf-args.c:83: warning: `wint_t' is promoted to `int' when 
> passed through `...'
> ../../intl/printf-args.c:83: warning: (so you should pass `int' not `wint_t' 
> to `va_arg')
> ../../intl/printf-args.c:83: note: if this code is reached, the program will 
> abort
> which corresponds to these source lines:
> #ifdef HAVE_WINT_T
>       case TYPE_WIDE_CHAR:
>       ap->a.a_wide_char = va_arg (args, wint_t);
>       break;
> #endif

Thanks for reporting this. This is already fixed in gnulib for 6 months:

2006-07-22  Bruno Haible  <address@hidden>

        Merge from GNU gettext 0.15.

        2005-07-05  Bruno Haible  <address@hidden>

                * printf-args.c (printf_fetchargs): Work around broken
                definition of wint_t on mingw.

reply via email to

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