<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21554">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Use explicit type-casting in hlist_del() for C++ compatibility<br><br>/usr/local/include/osmocom/core/linuxlist.h:479:12: error: invalid conversion from ‘void*’ to ‘hlist_node*’ [-fpermissive]<br>  479 |  n->next = LLIST_POISON1;<br><br>Fixes: I8ef73a62fe9846ce45058eb21cf999dd3eed5741<br>Change-Id: I75b0a5fe097562007c53987d8d41811e9f35798d<br>---<br>M include/osmocom/core/linuxlist.h<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/54/21554/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/linuxlist.h b/include/osmocom/core/linuxlist.h</span><br><span>index 5ccd462..f28f88b 100644</span><br><span>--- a/include/osmocom/core/linuxlist.h</span><br><span>+++ b/include/osmocom/core/linuxlist.h</span><br><span>@@ -476,8 +476,8 @@</span><br><span> static inline void hlist_del(struct hlist_node *n)</span><br><span> {</span><br><span>        __hlist_del(n);</span><br><span style="color: hsl(0, 100%, 40%);">- n->next = LLIST_POISON1;</span><br><span style="color: hsl(0, 100%, 40%);">-     n->pprev = LLIST_POISON2;</span><br><span style="color: hsl(120, 100%, 40%);">+  n->next = (struct hlist_node *)LLIST_POISON1;</span><br><span style="color: hsl(120, 100%, 40%);">+      n->pprev = (struct hlist_node **)LLIST_POISON2;</span><br><span> }</span><br><span> </span><br><span> /*! Delete the specified hlist_node from its list and initialize.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21554">change 21554</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/21554"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I75b0a5fe097562007c53987d8d41811e9f35798d </div>
<div style="display:none"> Gerrit-Change-Number: 21554 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>