[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] stdio: fix probe on mingw under gcc 5.1
From: |
Eric Blake |
Subject: |
Re: [PATCH] stdio: fix probe on mingw under gcc 5.1 |
Date: |
Tue, 26 May 2015 17:09:35 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 05/26/2015 04:09 PM, Assaf Gordon wrote:
> Hello Eric,
>
> Thanks for your quick reply and fix.
>
> I've found one more issue which I'm not sure how to solve - interplay
> between gcc/mingw/inttypes/gnulib: The format string to "error()".
>
> In theory (if I understand correctly), printf() and error() should
> accept the same format specifiers,
> thus should both work with PRI.MAX.
>
> However,
> after having the PRIdMAX changed back to 'lld', using it in 'error()'
> causes a warning under mingw:
Ah. Gnulib needs to mark error() as being __gnu_printf__, not __printf__.
>
> Which brings the question: will the compiled executable work? (it
> compiles and I get an 'exe' file, but don't have a way to test it ATM).
You don't have wine set up to run trivial .exe files on Linux? At any
rate, yes, it will work (the warning is bogus), but in the meantime,
I'll apply a patch to gnulib's error.h to silence the warning.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [PATCH] stdio: fix probe on mingw under gcc 5.1, Eric Blake, 2015/05/20
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Pádraig Brady, 2015/05/20
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Paul Eggert, 2015/05/20
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Eric Blake, 2015/05/21
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Paul Eggert, 2015/05/21
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Eric Blake, 2015/05/22
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Assaf Gordon, 2015/05/26
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Eric Blake, 2015/05/26
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Eric Blake, 2015/05/26
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1, Assaf Gordon, 2015/05/26
- Re: [PATCH] stdio: fix probe on mingw under gcc 5.1,
Eric Blake <=