bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp()


From: Derek Robert Price
Subject: Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp()
Date: Thu, 14 Oct 2004 21:25:27 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Neitzel wrote:

>Gruezi Bruno et al.,
>
>I was on a vacation trip, sory getting back so late.
>
>Your analysis is absolutely correct.  I compiled the code using
>--disable-nls and the original error message was:
>
>cfe: Warning 709: regex.c, line 7915: Incompatible pointer type
assignment
>        return ((const char *) ("No previous regular expression")) ;
>        ^
>
>(With the declared return type of the function being "char *", and the
>compiler showing the expanded gettext macro.)
>
>I opted for the gettext_noop variation because it amounted to the same
>overall effect (I now see just under --disable-nls) and because it
>seemed to me to be in line with other places where gettext_noop is
>used.  I actually considered the (char *) cast myself, and if you
>prefer it, I certainly won't complain.


I prefer to avoid typecasting whenever possible, because, otherwise,
what is the point of a compiler with type checking?

Anyhow, whoever makes a decision and updates GNULIB, please drop me a
line so I may update CVS.

Cheers,

Derek

- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBbycGLD1OTBfyMaQRAmEDAKCZKpCrLP9DGtFDv1c4X9GzfnbAuwCeLRBg
BrLhIrZERz4uvRwMuLgnjos=
=Nd7T
-----END PGP SIGNATURE-----





reply via email to

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