Blame SOURCES/libvirt-cim-0.6.3-63acad05.patch

c55d09
From 63acad058adca7ae2fa7edd57eb0c1e84998a783 Mon Sep 17 00:00:00 2001
c55d09
From: Michal Privoznik <mprivozn@redhat.com>
c55d09
Date: Tue, 28 Apr 2015 13:56:00 +0200
c55d09
Subject: [PATCH] list_util.h: Drop inline modifiers
c55d09
MIME-Version: 1.0
c55d09
Content-Type: text/plain; charset=UTF-8
c55d09
Content-Transfer-Encoding: 8bit
c55d09
c55d09
There's no need to mark a function as inline in the function
c55d09
declaration. In fact, it causes a compilation error:
c55d09
c55d09
  CC       xmlgen.lo
c55d09
In file included from acl_parsing.h:29:0,
c55d09
                 from xmlgen.h:26,
c55d09
                 from capability_parsing.c:37:
c55d09
list_util.h:67:21: error: inline function ‘list_node_prev_node’ declared but never defined [-Werror]
c55d09
 inline list_node_t *list_node_prev_node(list_node_t *node);
c55d09
                     ^
c55d09
list_util.h:66:14: error: inline function ‘list_node_prev’ declared but never defined [-Werror]
c55d09
 inline void        *list_node_prev(list_node_t *node);
c55d09
              ^
c55d09
list_util.h:64:21: error: inline function ‘list_node_next_node’ declared but never defined [-Werror]
c55d09
 inline list_node_t *list_node_next_node(list_node_t *node);
c55d09
                     ^
c55d09
list_util.h:63:14: error: inline function ‘list_node_next’ declared but never defined [-Werror]
c55d09
 inline void        *list_node_next(list_node_t *node);
c55d09
              ^
c55d09
list_util.h:61:21: error: inline function ‘list_last_node’ declared but never defined [-Werror]
c55d09
 inline list_node_t *list_last_node(list_t *list);
c55d09
                     ^
c55d09
list_util.h:60:14: error: inline function ‘list_last’ declared but never defined [-Werror]
c55d09
 inline void        *list_last(list_t *list);
c55d09
              ^
c55d09
list_util.h:58:21: error: inline function ‘list_first_node’ declared but never defined [-Werror]
c55d09
 inline list_node_t *list_first_node(list_t *list);
c55d09
                     ^
c55d09
list_util.h:57:14: error: inline function ‘list_first’ declared but never defined [-Werror]
c55d09
 inline void        *list_first(list_t *list);
c55d09
              ^
c55d09
list_util.h:55:13: error: inline function ‘list_node_data_set’ declared but never defined [-Werror]
c55d09
 inline void  list_node_data_set(list_node_t *node, void *data);
c55d09
             ^
c55d09
list_util.h:54:14: error: inline function ‘list_node_data_get’ declared but never defined [-Werror]
c55d09
 inline void *list_node_data_get(list_node_t *node);
c55d09
              ^
c55d09
list_util.h:52:21: error: inline function ‘list_count’ declared but never defined [-Werror]
c55d09
 inline unsigned int list_count(list_t *list);
c55d09
                     ^
c55d09
cc1: all warnings being treated as errors
c55d09
Makefile:499: recipe for target 'capability_parsing.lo' failed
c55d09
make[2]: *** [capability_parsing.lo] Error 1
c55d09
make[2]: *** Waiting for unfinished jobs....
c55d09
c55d09
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
c55d09
Signed-off-by: John Ferlan <jferlan@redhat.com>
c55d09
---
c55d09
 libxkutil/list_util.h | 22 +++++++++++-----------
c55d09
 1 file changed, 11 insertions(+), 11 deletions(-)
c55d09
c55d09
diff --git a/libxkutil/list_util.h b/libxkutil/list_util.h
c55d09
index 6510272..6582dfe 100644
c55d09
--- a/libxkutil/list_util.h
c55d09
+++ b/libxkutil/list_util.h
c55d09
@@ -49,22 +49,22 @@ void list_remove_node(list_t *list, list_node_t *node);
c55d09
 
c55d09
 bool list_foreach(list_t *list, list_foreach_cb cb, void *user_data);
c55d09
 
c55d09
-inline unsigned int list_count(list_t *list);
c55d09
+unsigned int list_count(list_t *list);
c55d09
 
c55d09
-inline void *list_node_data_get(list_node_t *node);
c55d09
-inline void  list_node_data_set(list_node_t *node, void *data);
c55d09
+void *list_node_data_get(list_node_t *node);
c55d09
+void  list_node_data_set(list_node_t *node, void *data);
c55d09
 
c55d09
-inline void        *list_first(list_t *list);
c55d09
-inline list_node_t *list_first_node(list_t *list);
c55d09
+void        *list_first(list_t *list);
c55d09
+list_node_t *list_first_node(list_t *list);
c55d09
 
c55d09
-inline void        *list_last(list_t *list);
c55d09
-inline list_node_t *list_last_node(list_t *list);
c55d09
+void        *list_last(list_t *list);
c55d09
+list_node_t *list_last_node(list_t *list);
c55d09
 
c55d09
-inline void        *list_node_next(list_node_t *node);
c55d09
-inline list_node_t *list_node_next_node(list_node_t *node);
c55d09
+void        *list_node_next(list_node_t *node);
c55d09
+list_node_t *list_node_next_node(list_node_t *node);
c55d09
 
c55d09
-inline void        *list_node_prev(list_node_t *node);
c55d09
-inline list_node_t *list_node_prev_node(list_node_t *node);
c55d09
+void        *list_node_prev(list_node_t *node);
c55d09
+list_node_t *list_node_prev_node(list_node_t *node);
c55d09
 
c55d09
 #ifdef __cplusplus
c55d09
 } /* extern "C" */
c55d09
-- 
c55d09
2.1.0
c55d09