networking/brctl.c: error: duplicate inline

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Mar 10 14:17:46 PDT 2008


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.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brctl.c.patch
Type: text/x-diff
Size: 837 bytes
Desc: 
Url : http://busybox.net/lists/busybox/attachments/20080310/e2eb39db/attachment.bin 


More information about the busybox mailing list