Commit cd3b6560 authored by Michał Kępień's avatar Michał Kępień

Merge branch 'michal/address-compilation-warnings-for-O3-builds' into 'master'

Address compilation warnings for -O3 builds

See merge request !1994
parents 1eb7a9e1 ce796ac1
Pipeline #15810 passed with stages
in 12 minutes and 18 seconds
......@@ -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
......
......@@ -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;
......
......@@ -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++;
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment