**tm.c*
```
CC (gcc) [M tm.so] t_cancel.o
CC (gcc) [M tm.so] tm.o
CC (gcc) [M tm.so] t_msgbuilder.o
In file included from ../../core/parser/../ut.h:42,
from ../../core/parser/../ip_addr.h:39,
from ../../core/parser/msg_parser.h:37,
from ../../core/sr_module.h:34,
from tm.c:54:
In function 'ki_t_check_status',
inlined from 'ki_t_check_status' at tm.c:1053:12:
../../core/parser/../dprint.h:309:8: warning: '%s' directive argument is null
[-Wformat-overflow=]
309 | fprintf(stderr, "%2d(%d) %s: %s" fmt, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
310 | process_no, my_pid(), \
| ~~~~~~~~~~~~~~~~~~~~~~~
311 | (lname)?(lname):LOG_LEVEL2NAME(__llevel), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312 | (prefix) , ## args);\
| ~~~~~~~~~~~~~~~~~~~
../../core/parser/../dprint.h:340:2: note: in expansion of macro 'LOG__'
340 | LOG__(facility, level, NULL, prefix, fmt, ## args)
| ^~~~~
../../core/parser/../dprint.h:344:2: note: in expansion of macro 'LOG_'
344 | LOG_(DEFAULT_FACILITY, (level), LOC_INFO, "%s(): " fmt ,\
| ^~~~
../../core/parser/../dprint.h:395:31: note: in expansion of macro 'LOG'
395 | # define ERR(fmt, args...) LOG(L_ERR, fmt , ## args)
| ^~~
../../core/parser/../dprint.h:421:16: note: in expansion of macro 'ERR'
421 | #define LM_ERR ERR
| ^~~
tm.c:1074:3: note: in expansion of macro 'LM_ERR'
1074 | LM_ERR("Bad regular expression '%s'\n", s);
| ^~~~~~
tm.c: In function 'ki_t_check_status':
tm.c:2862:36: note: format string is defined here
2862 | LM_ERR("failed to build proxy structure for <%.*s>\n",
| ^~
In file included from ../../core/parser/../ut.h:42,
from ../../core/parser/../ip_addr.h:39,
from ../../core/parser/msg_parser.h:37,
from ../../core/sr_module.h:34,
from tm.c:54:
In function 'ki_t_check_status',
inlined from 'ki_t_check_status' at tm.c:1053:12:
../../core/parser/../dprint.h:303:8: warning: '%s' directive argument is null
[-Wformat-overflow=]
303 | fprintf(stderr, "%2d(%d) %s: %.*s%s" fmt, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304 | process_no, my_pid(), \
| ~~~~~~~~~~~~~~~~~~~~~~~
305 | (lname)?(lname):LOG_LEVEL2NAME(__llevel), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
306 | log_prefix_val->len, log_prefix_val->s, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
307 | (prefix) , ## args);\
| ~~~~~~~~~~~~~~~~~~~
../../core/parser/../dprint.h:340:2: note: in expansion of macro 'LOG__'
340 | LOG__(facility, level, NULL, prefix, fmt, ## args)
| ^~~~~
../../core/parser/../dprint.h:344:2: note: in expansion of macro 'LOG_'
344 | LOG_(DEFAULT_FACILITY, (level), LOC_INFO, "%s(): " fmt ,\
| ^~~~
../../core/parser/../dprint.h:395:31: note: in expansion of macro 'LOG'
395 | # define ERR(fmt, args...) LOG(L_ERR, fmt , ## args)
| ^~~
../../core/parser/../dprint.h:421:16: note: in expansion of macro 'ERR'
421 | #define LM_ERR ERR
| ^~~
tm.c:1074:3: note: in expansion of macro 'LM_ERR'
1074 | LM_ERR("Bad regular expression '%s'\n", s);
| ^~~~~~
tm.c: In function 'ki_t_check_status':
tm.c:2862:36: note: format string is defined here
2862 | LM_ERR("failed to build proxy structure for <%.*s>\n",
| ^~
CC (gcc) [M tm.so] lock.o
CC (gcc) [M tm.so] config.o
CC (gcc) [M tm.so] t_reply.o
LD (gcc) [M tm.so] tm.so
CC (gcc) [M counters.so] counters.o
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2169#issuecomment-562613238