bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] Compilation error with gcc 4.0.1 +quick fix


From: david
Subject: Re: [Bug-indent] Compilation error with gcc 4.0.1 +quick fix
Date: Thu, 26 Apr 2007 21:47:23 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20060911)

This has already been resolved in the code base and the next release
already compiles clean with gcc (GCC) 4.1.2.

The fix was indeed to remove it from indent.h.

Eric Deplagne wrote:
> On Thu, 27 Oct 2005 20:59:57 +1300, David Hill wrote:
>> It wouldn't compile as-is.
>>
>> What I did:
>> ./configure
>> make
>>
>> Error:
>> output.c:26: error: static declaration of ?output? follows non-static
>> declaration
>> indent.h:100: error: previous declaration of ?output? was here
>>
>> This was with gcc 4.0.1.
>>
>> How I fixed it:
>> #ifndef so 'output' isn't declared in indent.h when output.c includes
>> it.
>>
>> #define before output.c includes indent.h
>> #undef after
>>
>> This is just a quick fix, there is probably a much cleaner way to do it.
>>
>> Anyway, I'm including diffs of the two files I changed.
>>
>> Thanks,
>> David Hill.
>
>  if "output" is static, it just has nothing to do in indent.h...
>





reply via email to

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