Re: Compilation error with gcc 4.0.1 +quick fix

david <[email protected]>
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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...
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.