<p>using kamailio/pkg-kamailio-docker:dev-sid image can be reproduced</p>
<pre><code>CC (gcc) [M sms.so]              libsms_modem.o
libsms_modem.c: In function 'initmodem':
libsms_modem.c:230:36: warning: '%s' directive writing up to 128 bytes into a region of size 91 [-Wformat-overflow=]
    clen=sprintf(command,"AT+CPIN=\"%s\"\r",mdm->pin);
                                    ^~
libsms_modem.c:230:8: note: 'sprintf' output between 12 and 140 bytes into a destination of size 100
    clen=sprintf(command,"AT+CPIN=\"%s\"\r",mdm->pin);
    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</code></pre>
<pre><code>CC (gcc) [M uac.so]              uac_reg.o
uac_reg.c: In function 'reg_ht_add':
uac_reg.c:558:81: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
uac_reg.c:502:13:
    p = p + ((bsize)?(bsize):(dst)->len) + 1; \
             ~~~~~~~                                                              
uac_reg.c:558:81:
  reg_copy_shm(&nr->callid, &str_empty, reg_keep_callid ? UAC_REG_TM_CALLID_SIZE : 0);
uac_reg.c:502:14: note: in definition of macro 'reg_copy_shm'
    p = p + ((bsize)?(bsize):(dst)->len) + 1; \
              ^~~~~
</code></pre>
<pre><code>CC (gcc) [M auth_radius.so]              sterman.o
sterman.c: In function 'extract_avp':
sterman.c:78:61: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   if(!q && p == vp->strvalue && vp->strvalue + sizeof(char) != '\0') {
                                                             ^~
sterman.c:78:33: note: did you mean to dereference the pointer?
   if(!q && p == vp->strvalue && vp->strvalue + sizeof(char) != '\0') {
                                 ^
</code></pre>
<pre><code>CC (gcc) [M xmpp.so]             xode.o
xode.c: In function 'xode_get_tag':
xode.c:346:77: warning: comparison between pointer and zero character constant [-Wpointer-compare]
     if(parent == NULL || parent->firstchild == NULL || name == NULL || name == '\0') return NULL;
                                                                             ^~
xode.c:346:72: note: did you mean to dereference the pointer?
     if(parent == NULL || parent->firstchild == NULL || name == NULL || name == '\0') return NULL;
                                                                        ^
</code></pre>
<pre><code>CC (gcc) [M xmpp.so]             xstream.o
xstream.c: In function '_xode_put_expatattribs':
xstream.c:34:20: warning: comparison between pointer and zero character constant [-Wpointer-compare]
     while (atts[i] != '\0')
                    ^~
xstream.c:34:12: note: did you mean to dereference the pointer?
     while (atts[i] != '\0')
            ^
CC (gcc) [M xmpp.so]            xode_from.o
xode_from.c: In function '_xode_put_expatattribs':
xode_from.c:35:20: warning: comparison between pointer and zero character constant [-Wpointer-compare]
     while (atts[i] != '\0')
                    ^~
xode_from.c:35:12: note: did you mean to dereference the pointer?
     while (atts[i] != '\0')
            ^
</code></pre>
<pre><code>CC (gcc) [M ims_registrar_pcscf.so]              sec_agree.o
sec_agree.c: In function 'free_security_t':
sec_agree.c:216:5: warning: enumeration value 'SECURITY_NONE' not handled in switch [-Wswitch]
     switch (params->type)
     ^~~~~~
</code></pre>
<pre><code>CC (gcc) [M db_mongodb.so]               mongodb_dbase.o
mongodb_dbase.c: In function 'db_mongodb_query':
mongodb_dbase.c:922:2: warning: 'mongoc_collection_find' is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
  mgcon->cursor = mongoc_collection_find (mgcon->collection,
  ^~~~~
In file included from /usr/include/libmongoc-1.0/mongoc-client.h:28:0,
                 from /usr/include/libmongoc-1.0/mongoc.h:28,
                 from mongodb_connection.h:26,
                 from mongodb_dbase.c:27:
/usr/include/libmongoc-1.0/mongoc-collection.h:145:1: note: declared here
 mongoc_collection_find (mongoc_collection_t *collection,
 ^~~~~~~~~~~~~~~~~~~~~~
CC (gcc) [M db_mongodb.so]              mongodb_connection.o
CC (gcc) [M db_mongodb.so]              db_mongodb_mod.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_mongodb.so]              db_mongodb.so
CC (gcc) [M ndb_mongodb.so]             mongodb_client.o
mongodb_client.c: In function 'mongodbc_exec_cmd':
mongodb_client.c:290:4: warning: 'mongoc_collection_find' is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
    rpl->cursor = mongoc_collection_find (rpl->collection,
    ^~~
In file included from /usr/include/libmongoc-1.0/mongoc-client.h:28:0,
                 from /usr/include/libmongoc-1.0/mongoc.h:28,
                 from mongodb_client.h:25,
                 from mongodb_client.c:34:
/usr/include/libmongoc-1.0/mongoc-collection.h:145:1: note: declared here
 mongoc_collection_find (mongoc_collection_t *collection,
 ^~~~~~~~~~~~~~~~~~~~~~
</code></pre>

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

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"warnings when building 5.1.0 with gcc 7 (sid) (#1369)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1369"}}}</script>