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

Bug#297825: twin: FTBFS (amd64/gcc-4.0): static declaration of 'DeleteAllListeners' follows non-static declaration



Re: Andreas Jochens in <[🔎] E1D6lfA-0003TZ-BV@localhost.localdomain>
> libTw_u.c: At top level:
> libTw_u.c:1595: warning: conflicting types for 'DeleteAllListeners'
> libTw_u.c:1595: error: static declaration of 'DeleteAllListeners' follows non-static declaration
> libTw_u.c:1224: error: previous implicit declaration of 'DeleteAllListeners' was here

> +++ ./libs/libTw/libTw.c	2005-03-02 18:28:06.000000000 +0100
> @@ -1182,6 +1182,8 @@
>      return (tw_d)0;
>  }
>  
> +static void DeleteAllListeners(tlistener);

> @@ -1193,7 +1195,6 @@
>   * closes a server connection
>   */
>  void Tw_Close(tw_d TwD) {
> -    static void DeleteAllListeners(tlistener);

Hi,

I haven't looked at the source, but this fix seems like a workaround
for me. Either there is already a global definition of
DeleteAllListeners, in which case it should be fixed, or not, in which
case moving a local static to global doesn't feel right. (Same for the
other file.)

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature


Reply to: