<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/14578">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">utils.h: fix warning "empty expression<br><br>When using `OSMO_ASSERT(exp);` clang will warn about<br>an empty expression, because the semi colon was superflous.<br>Use do {} while (0) to circum vent.<br><br>Change-Id: I2272d29a81496164bebd1696a694383a28a86434<br>---<br>M include/osmocom/core/utils.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/78/14578/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h</span><br><span>index 601bb56..8585a6a 100644</span><br><span>--- a/include/osmocom/core/utils.h</span><br><span>+++ b/include/osmocom/core/utils.h</span><br><span>@@ -98,9 +98,9 @@</span><br><span>  *  the predicate evaluates to false (0).</span><br><span>  */</span><br><span> #define OSMO_ASSERT(exp)    \</span><br><span style="color: hsl(0, 100%, 40%);">- if (!(exp)) { \</span><br><span style="color: hsl(120, 100%, 40%);">+       do if (!(exp)) { \</span><br><span>           osmo_panic("Assert failed %s %s:%d\n", #exp, __FILE__, __LINE__); \</span><br><span style="color: hsl(0, 100%, 40%);">-   }</span><br><span style="color: hsl(120, 100%, 40%);">+     } while(0)</span><br><span> </span><br><span> /*! duplicate a string using talloc and release its prior content (if any)</span><br><span>  * \param[in] ctx Talloc context to use for allocation</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/14578">change 14578</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/+/14578"/><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: I2272d29a81496164bebd1696a694383a28a86434 </div>
<div style="display:none"> Gerrit-Change-Number: 14578 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>