2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +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:
Michał Kępień
2019-06-11 04:49:01 -04:00
4 changed files with 5 additions and 5 deletions

View File

@@ -301,7 +301,7 @@ unit:gcc:stretch:amd64:
gcc:sid:amd64:
variables:
CC: gcc
CFLAGS: "-Wall -Wextra -O2 -g"
CFLAGS: "-Wall -Wextra -O3 -g"
EXTRA_CONFIGURE: "--with-libidn2"
RUN_MAKE_INSTALL: 1
<<: *debian_sid_amd64_image
@@ -324,7 +324,7 @@ unit:gcc:sid:amd64:
gcc:sid:i386:
variables:
CC: gcc
CFLAGS: "-Wall -Wextra -O2 -g"
CFLAGS: "-Wall -Wextra -O3 -g"
EXTRA_CONFIGURE: "--with-libidn2 --without-python"
<<: *debian_sid_i386_image
<<: *build_job

View File

@@ -166,7 +166,7 @@ del_name(struct dlz_example_data *state, struct record *list,
static isc_result_t
fmt_address(isc_sockaddr_t *addr, char *buffer, size_t size) {
char addr_buf[100];
char addr_buf[INET6_ADDRSTRLEN];
const char *ret;
uint16_t port = 0;

View File

@@ -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 */
salt = htonl(testcase->salt);
sp = (unsigned char *) &salt;
while (*sp == '\0' && slen > 0) {
while (slen > 0 && *sp == '\0') {
slen--;
sp++;
}

View File

@@ -1380,7 +1380,7 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
RUNTIME_CHECK(isc_thread_create(run, &manager->queues[i],
&manager->queues[i].thread)
== ISC_R_SUCCESS);
char name[16];
char name[21];
snprintf(name, sizeof(name), "isc-worker%04u", i);
isc_thread_setname(manager->queues[i].thread, name);
}