assertions.c:112:2: warning: ‘%s’ directive argument is null
On v9_11
compiling with --without-dlopen
produces warning:
gcc -I/home/newman/isc/ws/bind9-private -I../.. -I./unix/include -I./pthreads/include -I./x86_32/include -I./include -I./include -I/home/newman/isc/ws/bind9-private/lib/dns/include -I../../lib/dns/include -D_REENTRANT -DOPENSSL -DPK11_LIB_LOCATION=\"undefined\" -D_GNU_SOURCE -g -O2 -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c assertions.c
assertions.c: In function ‘default_callback’:
assertions.c:112:2: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
112 | fprintf(stderr, "%s:%d: %s(%s) %s%s\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113 | file, line, isc_assertion_typetotext(type), cond,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114 | isc_msgcat_get(isc_msgcat, ISC_MSGSET_GENERAL,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
115 | ISC_MSG_FAILED, "failed"), logsuffix);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
assertions.c:112:2: warning: ‘%s’ directive argument is null [-Wformat-overflow=]