GNU bug report logs - #7099
mbsalign.c old c compiler complains about variables defined inside code

Previous Next

Package: coreutils;

Reported by: Suhan Andrei <sandi_ro <at> yahoo.com>

Date: Fri, 24 Sep 2010 20:31:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 7099-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Suhan Andrei <sandi_ro <at> yahoo.com>
Cc: 7099-done <at> debbugs.gnu.org
Subject: Re: bug#7099: mbsalign.c old c compiler complains about variables
	defined inside code
Date: Fri, 01 Oct 2010 14:32:42 +0100
[Message part 1 (text/plain, inline)]
On 24/09/10 22:38, Pádraig Brady wrote:
> On 24/09/10 21:15, Suhan Andrei wrote:
>> Hi
>>
>> Just wanted to let you know there are some errors when using old compiler 
>> (
>> gcc -v
>> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>> )
>>
>>
>> Tere are 2 variables defined inside blocks of code that triggers old c compiler 
>> to spill errors.
>> I used code from coreutils-8.5.tar.gz 
>> I moved declaration at the start of code and all compiled ok.
> 
> Eep, I'll fix that up, as we want to keep stuff under gl/
> C89 conformant, as it may be moved to gnulib at some stage.

I'll push the attached soon.

cheers,
Pádraig.
[mbsalign-c89.diff (text/x-patch, attachment)]

This bug report was last modified 14 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.