<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/14703">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Revert "utils.h: require a semi colon after OSMO_ASSERT"<br><br>This reverts commit 4e284b637943980a405a8c44f2712b749ded428f.<br><br>Unfortunately, some projects such as OsmoMSC, OsmoBTS and OpenBSC<br>do contain OSMO_ASSERT statements without a semi colon. Thus,<br>this change causes compilation errors when building them.<br><br>Please note that only the OSMO_ASSERT's definition is reverted,<br>while changes to other files (adding missing semicolons) are kept.<br><br>Change-Id: I6da4d7397d993f6c1af658cb5ae1e49c92a1b350<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/03/14703/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 8585a6a..601bb56 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%);">-      do if (!(exp)) { \</span><br><span style="color: hsl(120, 100%, 40%);">+    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%);">-   } while(0)</span><br><span style="color: hsl(120, 100%, 40%);">+    }</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/+/14703">change 14703</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/+/14703"/><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: I6da4d7397d993f6c1af658cb5ae1e49c92a1b350 </div>
<div style="display:none"> Gerrit-Change-Number: 14703 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>