tags 778173 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added extern to the INLINE
functions in src/wmgeneral/list.c. The package builds and links with GCC
5 with this change.

--
Betty Dall
Linux for HP Helion, Hewlett-Packard
--- wmressel-0.8/src/wmgeneral/list.c.orig	2015-07-07 10:07:06.732544075 +0000
+++ wmressel-0.8/src/wmgeneral/list.c	2015-07-07 09:22:19.248580595 +0000
@@ -38,7 +38,7 @@
 
 /* Return a cons cell produced from (head . tail) */
 
-INLINE LinkedList* 
+extern INLINE LinkedList* 
 list_cons(void* head, LinkedList* tail)
 {
   LinkedList* cell;
@@ -51,7 +51,7 @@
 
 /* Return the length of a list, list_length(NULL) returns zero */
 
-INLINE int
+extern INLINE int
 list_length(LinkedList* list)
 {
   int i = 0;
@@ -66,7 +66,7 @@
 /* Return the Nth element of LIST, where N count from zero.  If N 
    larger than the list length, NULL is returned  */
 
-INLINE void*
+extern INLINE void*
 list_nth(int index, LinkedList* list)
 {
   while(index-- != 0)
@@ -81,7 +81,7 @@
 
 /* Remove the element at the head by replacing it by its successor */
 
-INLINE void
+extern INLINE void
 list_remove_head(LinkedList** list)
 {
   if (!*list) return;  
@@ -101,7 +101,7 @@
 
 /* Remove the element with `car' set to ELEMENT */
 /*
-INLINE void
+extern INLINE void
 list_remove_elem(LinkedList** list, void* elem)
 {
   while (*list)
@@ -112,7 +112,7 @@
     }
 }*/
 
-INLINE LinkedList *
+extern INLINE LinkedList *
 list_remove_elem(LinkedList* list, void* elem)
 {
     LinkedList *tmp;
@@ -132,7 +132,7 @@
 
 /* Return element that has ELEM as car */
 
-INLINE LinkedList*
+extern INLINE LinkedList*
 list_find(LinkedList* list, void* elem)
 {
   while(list)
@@ -146,7 +146,7 @@
 
 /* Free list (backwards recursive) */
 
-INLINE void
+extern INLINE void
 list_free(LinkedList* list)
 {
   if(list)
@@ -158,7 +158,7 @@
 
 /* Map FUNCTION over all elements in LIST */
 
-INLINE void
+extern INLINE void
 list_mapcar(LinkedList* list, void(*function)(void*))
 {
   while(list)

Reply via email to