20 Apr
2009
20 Apr
'09
9:01 a.m.
2009/4/20 James McKenzie <jjmckenzie51(a)earthlink.net>:
What compiler was complaining about the static inline problem? Your solution may cause problems with other compilers.
More specifically, you need to protect this with an #ifdef. E.g.: #ifdef __GNUC__ #define __WINE_ATTR_UNUSED __attribute__((unused)) #else #define __WINE_ATTR_UNUSED #endif ... static inline void __WINE_ATTR_UNUSED list_add_head( struct list *list, struct list *elem ) { ... }