<p>The logging macros make use of GCC (and compatible) variadic macros.  While there are ifdefs for Solaris Studio using C99 variadic macros, they don't compile and seem to be suffering from bit rot.</p>

<p>There are a couple ways to address this:</p>

<ul>
<li>rebase and fix the <code>ifdef __SUNPRO_C</code> portion which would introduce no changes for the GCC build but would have more longterm maintenance overhead</li>
<li>replace the GCC extensions and ifdefs with C99 compliant ones which would not be as readable and require a few hacks to prevent trailing commas in the case of zero arguments.  This would remove the code maintenance burden and make the macros more portable.</li>
</ul>

<p>I'll be happy to submit a pull request for either approach.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/678">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZVv4_jfHj4AZCxVQsaMTCsnw89q9ks5qN3VngaJpZM4I6XsJ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXpHpqY6GFNKLIKughfgtlHW6xG0ks5qN3VngaJpZM4I6XsJ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/678"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>