<p>compilation was failling with clang:</p>

<blockquote>
<p>CC (clang) [M xmlrpc.so]      xmlrpc.o<br>
xmlrpc.c:152:5: error: expected parameter declarator<br>
int snprintf(char *str, size_t size, const char *format, ...);<br>
    ^<br>
/usr/include/x86_64-linux-gnu/bits/stdio2.h:69:39: note: expanded from macro 'snprintf'<br>
  __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \<br>
                                      ^<br>
/usr/include/features.h:329:31: note: expanded from macro '__USE_FORTIFY_LEVEL'</p>

<h1>define __USE_FORTIFY_LEVEL 2</h1>

<pre><code>                          ^
</code></pre>

<p>xmlrpc.c:152:5: error: expected ')'<br>
/usr/include/x86_64-linux-gnu/bits/stdio2.h:69:39: note: expanded from macro 'snprintf'<br>
  __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \<br>
                                      ^<br>
/usr/include/features.h:329:31: note: expanded from macro '__USE_FORTIFY_LEVEL'</p>

<h1>define __USE_FORTIFY_LEVEL 2</h1>

<pre><code>                          ^
</code></pre>

<p>xmlrpc.c:152:5: note: to match this '('<br>
/usr/include/x86_64-linux-gnu/bits/stdio2.h:69:28: note: expanded from macro 'snprintf'<br>
  __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \<br>
                           ^<br>
xmlrpc.c:152:5: error: conflicting types for '__builtin___snprintf_chk'<br>
int snprintf(char *str, size_t size, const char *format, ...);<br>
    ^<br>
/usr/include/x86_64-linux-gnu/bits/stdio2.h:69:3: note: expanded from macro 'snprintf'<br>
  __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \<br>
  ^<br>
xmlrpc.c:152:5: note: '__builtin___snprintf_chk' is a builtin with type 'int (char *, unsigned long, int, unsigned long, const char *, ...)'<br>
/usr/include/x86_64-linux-gnu/bits/stdio2.h:69:3: note: expanded from macro 'snprintf'<br>
  __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \<br>
  ^<br>
3 errors generated.</p>
</blockquote>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/652'>https://github.com/kamailio/kamailio/pull/652</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>xmlrpc: remove redeclaration of snprintf and vsnprintf</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/652/files#diff-0">modules/xmlrpc/xmlrpc.c</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/652.patch'>https://github.com/kamailio/kamailio/pull/652.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/652.diff'>https://github.com/kamailio/kamailio/pull/652.diff</a></li>
</ul>

<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/pull/652">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZV8xLfMP2jb8amgXgKDuUd75U6mcks5qIBbpgaJpZM4Itdkj">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZVT2Xmdjoxu7m8bVY5HTdy2ZlHMrks5qIBbpgaJpZM4Itdkj.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/pull/652"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>