[pcre-dev] [Bug 991] PCRE generates warnings when compiled o…

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 991] PCRE generates warnings when compiled on Windows x64
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=991




--- Comment #1 from Philip Hazel <ph10@???> 2010-05-30 16:58:36 ---
On Sun, 30 May 2010, Dino Chiesa wrote:

> The compilation generates 91 warnings. All of them appear to be size
> conversion warnings, about a potential loss of data converting from __int64 to
> int, and other similar issues.

...
> The basic problem is that strlen() on x86-64 returns a size_t, and in
> the code, the result of strlen() is often assigned to int.


However, there are only 29 occurrences of strlen() in the pcre code
base, and several of them already appear with a cast, as (int)strlen().
So there must be other things causing this.

> So the request is, fixup PCRE to eliminate the compile-time warnings
> on Windows x86-64.


You are just in time for this to get considered for the next release.
Please send me a list of all the warnings, so that I can find where to
put in the casts.

> If you need access to a Windows machine to assist in doing this, I'd
> be glad to cooperate.


Thank you for the offer, but I don't think it would help me, as I have
never used Windows.

Regards,
Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email