This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Patch for PR 14055
- From: Andreas Schwab <schwab at suse dot de>
- To: Feng Wang <wf_cs at yahoo dot com>
- Cc: Bud Davis <bdavis9659 at comcast dot net>,gfortran <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Mar 2004 10:00:23 +0100
- Subject: Re: [gfortran] Patch for PR 14055
- References: <20040310020226.88187.qmail@web15203.mail.bjs.yahoo.com>
Feng Wang <wf_cs@yahoo.com> writes:
>> --- 2426,2440 ----
>> gfc_convert_integer (const char *buffer, int kind, int radix, locus *
>> where)
>> {
>> gfc_expr *e;
>> + const char *t;
>>
>> e = gfc_constant_result (BT_INTEGER, kind, where);
>> ! /* a leading plus is allowed, but not by mpz_set_str */
>> ! if (buffer[0] == '+')
>> ! t = buffer + 1;
>
> I think this should add an explicit type conversion to get rid off the
> compiling warnings. As: t = (char *)(buffer + 1);
??? t is a const char *, like buffer.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."