File gcc7-inline.patch of Package python-dmidecode
Index: python-dmidecode-3.12.2/src/dmixml.c
===================================================================
--- python-dmidecode-3.12.2/src/dmixml.c
+++ python-dmidecode-3.12.2/src/dmixml.c
@@ -351,7 +351,7 @@ xmlNode *dmixml_FindNode(xmlNode *node,
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
* must NOT be freed, as it points directly into the value in the XML document.
*/
-inline char *dmixml_GetContent(xmlNode *node) {
+char *dmixml_GetContent(xmlNode *node) {
// FIXME: Should find better way how to return UTF-8 data
return (((node != NULL) && (node->children != NULL)) ? (char *) node->children->content : NULL);
}
@@ -366,7 +366,7 @@ inline char *dmixml_GetContent(xmlNode *
* @return char* Pointer to the tag contents if found, otherwise NULL. This value
* must NOT be freed, as it points directly into the value in the XML document.
*/
-inline char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
+char *dmixml_GetNodeContent(xmlNode *node, const char *key) {
return dmixml_GetContent(dmixml_FindNode(node, key));
}
Index: python-dmidecode-3.12.2/src/dmixml.h
===================================================================
--- python-dmidecode-3.12.2/src/dmixml.h
+++ python-dmidecode-3.12.2/src/dmixml.h
@@ -75,8 +75,8 @@ xmlNode *__dmixml_FindNodeByAttr(xmlNode
xmlNode *dmixml_FindNode(xmlNode *, const char *key);
-inline char *dmixml_GetContent(xmlNode *node);
-inline char *dmixml_GetNodeContent(xmlNode *node, const char *key);
+char *dmixml_GetContent(xmlNode *node);
+char *dmixml_GetNodeContent(xmlNode *node, const char *key);
char *dmixml_GetXPathContent(Log_t *logp, char *buf, size_t buflen, xmlXPathObject *xpo, int idx);
#endif