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: Eric Deplagne
Subject: Re: [Bug-indent] Compilation error with gcc 4.0.1 +quick fix
Date: Fri, 18 Nov 2005 12:42:34 +0100
User-agent: Mutt/1.5.9i

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...

-- 
  Eric Deplagne




reply via email to

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