[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regcomp warnings using Mingw64 toolchain
From: |
Bruno Haible |
Subject: |
Re: regcomp warnings using Mingw64 toolchain |
Date: |
Sun, 17 Jun 2012 16:00:15 +0200 |
User-agent: |
KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) |
Hi Paul,
Daniel P. Berrange wrote:
> While on x86_64-w64-mingw32 only I see:
>
>
> In file included from ../../../gnulib/lib/regex.c:69:0:
> ../../../gnulib/lib/regcomp.c: In function 'parse_dup_op':
> ../../../gnulib/lib/regcomp.c:2624:39: warning: cast to pointer from integer
> of different size [-Wint-to-pointer-cast]
> ../../../gnulib/lib/regcomp.c: In function 'mark_opt_subexp':
> ../../../gnulib/lib/regcomp.c:3859:19: warning: cast from pointer to integer
> of different size [-Wpointer-to-int-cast]
Obviously, the code assumes that 'long' has the same width as 'void*'.
For portability the cast to 'long' should better be replaced with a cast
to 'intptr_t'. This type is guaranteed to be defined by virtue of the
#include <stdint.h>
in regex_internal.h.
Bruno
- Libvirt / GNULIB failures using Mingw64 toolchain, Daniel P. Berrange, 2012/06/15
- Re: regcomp warnings using Mingw64 toolchain,
Bruno Haible <=
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Bruno Haible, 2012/06/17
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Daniel P. Berrange, 2012/06/18
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Bruno Haible, 2012/06/19
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Daniel P. Berrange, 2012/06/20
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Bruno Haible, 2012/06/21
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Daniel P. Berrange, 2012/06/21
- Re: Libvirt / GNULIB failures using Mingw64 toolchain, Paul Eggert, 2012/06/21