mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
Merge branch 'michal/address-compilation-warnings-for-O3-builds' into 'master'
Address compilation warnings for -O3 builds See merge request isc-projects/bind9!1994
This commit is contained in:
@@ -301,7 +301,7 @@ unit:gcc:stretch:amd64:
|
|||||||
gcc:sid:amd64:
|
gcc:sid:amd64:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "-Wall -Wextra -O2 -g"
|
CFLAGS: "-Wall -Wextra -O3 -g"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
EXTRA_CONFIGURE: "--with-libidn2"
|
||||||
RUN_MAKE_INSTALL: 1
|
RUN_MAKE_INSTALL: 1
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
@@ -324,7 +324,7 @@ unit:gcc:sid:amd64:
|
|||||||
gcc:sid:i386:
|
gcc:sid:i386:
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "-Wall -Wextra -O2 -g"
|
CFLAGS: "-Wall -Wextra -O3 -g"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --without-python"
|
EXTRA_CONFIGURE: "--with-libidn2 --without-python"
|
||||||
<<: *debian_sid_i386_image
|
<<: *debian_sid_i386_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
@@ -166,7 +166,7 @@ del_name(struct dlz_example_data *state, struct record *list,
|
|||||||
|
|
||||||
static isc_result_t
|
static isc_result_t
|
||||||
fmt_address(isc_sockaddr_t *addr, char *buffer, size_t size) {
|
fmt_address(isc_sockaddr_t *addr, char *buffer, size_t size) {
|
||||||
char addr_buf[100];
|
char addr_buf[INET6_ADDRSTRLEN];
|
||||||
const char *ret;
|
const char *ret;
|
||||||
uint16_t port = 0;
|
uint16_t port = 0;
|
||||||
|
|
||||||
|
@@ -107,7 +107,7 @@ make_nsec3(nsec3_testcase_t *testcase, dns_rdata_t *private,
|
|||||||
/* for simplicity, we're using a maximum salt length of 4 */
|
/* for simplicity, we're using a maximum salt length of 4 */
|
||||||
salt = htonl(testcase->salt);
|
salt = htonl(testcase->salt);
|
||||||
sp = (unsigned char *) &salt;
|
sp = (unsigned char *) &salt;
|
||||||
while (*sp == '\0' && slen > 0) {
|
while (slen > 0 && *sp == '\0') {
|
||||||
slen--;
|
slen--;
|
||||||
sp++;
|
sp++;
|
||||||
}
|
}
|
||||||
|
@@ -1380,7 +1380,7 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
|
|||||||
RUNTIME_CHECK(isc_thread_create(run, &manager->queues[i],
|
RUNTIME_CHECK(isc_thread_create(run, &manager->queues[i],
|
||||||
&manager->queues[i].thread)
|
&manager->queues[i].thread)
|
||||||
== ISC_R_SUCCESS);
|
== ISC_R_SUCCESS);
|
||||||
char name[16];
|
char name[21];
|
||||||
snprintf(name, sizeof(name), "isc-worker%04u", i);
|
snprintf(name, sizeof(name), "isc-worker%04u", i);
|
||||||
isc_thread_setname(manager->queues[i].thread, name);
|
isc_thread_setname(manager->queues[i].thread, name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user