networking/brctl.c: error: duplicate inline

Denys Vlasenko vda.linux at googlemail.com
Tue Mar 18 01:40:35 UTC 2008


On Monday 10 March 2008 22:17, Cristian Ionescu-Idbohrn wrote:
> GNU C version 3.3.6 (Debian 1:3.3.6-15) (i486-linux-gnu)
> 
> says:
> 
>   networking/brctl.c:39: error: duplicate `inline'
>   networking/brctl.c:52: error: duplicate `inline'
> 
> line:
> 
>   static inline ALWAYS_INLINE void strtotimeval(struct timeval *tv,
> 
> is expanded to:
> 
>   static __inline__ __attribute__ ((always_inline)) __inline__ void strtotimeval(struct timeval *tv,
> 
> On the other hand,
> GNU C version 4.2.3 (Debian 4.2.3-2) (i486-linux-gnu)
> 
> does not complain, while expanding to an identical line:
> 
>   static __inline__ __attribute__ ((always_inline)) __inline__ void strtotimeval(struct timeval *tv,
> 
> The attached patch removes the __inline__ duplication.

Applied, thanks.
--
vda



More information about the busybox mailing list