Hi all, im new to the list, im interested in grinding away at some of
the warnings wine generates...
make depend was complaining about some static inline functions that it
thinks arent used, this patch uses __attribute__ ((used)) to disable the
warning.
Glenn
diff --git a/include/wine/list.h b/include/wine/list.h
index b610e5e..2f925c7 100644
--- a/include/wine/list.h
+++ b/include/wine/list.h
@@ -81,7 +81,8 @@ static inline void list_add_before( struct list *elem, struct list *to_add )
}
/* add element at the head of the list */
-static inline void list_add_head( struct list *list, struct list *elem )
+static inline void list_add_head( struct list *list, struct list *elem ) __attribute__ ((unused));
+void list_add_head( struct list *list, struct list *elem )
{
list_add_after( list, elem );
}
@@ -116,13 +117,15 @@ static inline struct list *list_prev( const struct list *list, const struct list
}
/* get the first element */
-static inline struct list *list_head( const struct list *list )
+static inline struct list *list_head( const struct list *list ) __attribute__ ((unused));
+struct list *list_head( const struct list *list )
{
return list_next( list, list );
}
/* get the last element */
-static inline struct list *list_tail( const struct list *list )
+static inline struct list *list_tail( const struct list *list ) __attribute__ ((unused));
+struct list *list_tail( const struct list *list )
{
return list_prev( list, list );
}
@@ -140,7 +143,8 @@ static inline void list_init( struct list *list )
}
/* count the elements of a list */
-static inline unsigned int list_count( const struct list *list )
+static inline unsigned int list_count( const struct list *list ) __attribute__ ((unused));
+unsigned int list_count( const struct list *list )
{
unsigned count = 0;
const struct list *ptr;
@@ -149,7 +153,8 @@ static inline unsigned int list_count( const struct list *list )
}
/* move all elements from src to the tail of dst */
-static inline void list_move_tail( struct list *dst, struct list *src )
+static inline void list_move_tail( struct list *dst, struct list *src ) __attribute__ ((unused));
+void list_move_tail( struct list *dst, struct list *src )
{
if (list_empty(src)) return;
@@ -161,7 +166,8 @@ static inline void list_move_tail( struct list *dst, struct list *src )
}
/* move all elements from src to the head of dst */
-static inline void list_move_head( struct list *dst, struct list *src )
+static inline void list_move_head( struct list *dst, struct list *src ) __attribute__ ((unused));
+void list_move_head( struct list *dst, struct list *src )
{
if (list_empty(src)) return;