bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] ssize_t: fix definition on mingw


From: Bruno Haible
Subject: Re: [PATCH] ssize_t: fix definition on mingw
Date: Thu, 05 Apr 2012 14:40:01 +0200
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

Eric Blake wrote:
> Then how do I explain the compiler
> warning that Daniel was seeing under mingw64?

They come from disagreements regarding the "integer conversion rank" of
'size_t' and 'ssize_t' between GCC and <sys/types.h>.

When you write printf("%zd",arg) then GCC compares its own built-in knowledge
about 'ssize_t' being 'int' or 'long' with the type of the argument 'arg'.
It reports mismatch between 'int' and 'long' also on 32-bit platforms
(possibly with the intent of helping portability to 64-bit platforms).

Bruno




reply via email to

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