2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

chg: ci: Update Clang to version 19

These Clang 19-identified issues need to be addressed first:
- [x] isc-projects/bind9!9313
- [x] isc-projects/bind9!9317
- [x] isc-projects/bind9!9316
- [x] isc-projects/bind9!9315

Validation pipelines for backports:
- [x] ~"v9.21" - https://gitlab.isc.org/isc-projects/bind9/-/pipelines/191211
- [x] ~"v9.20" - https://gitlab.isc.org/isc-projects/bind9/-/pipelines/191512
- [x] ~"v9.18" - https://gitlab.isc.org/isc-projects/bind9/-/pipelines/191904

Prereq: isc-projects/images!328

Merge branch 'mnowak/llvm-19' into 'main'

See merge request isc-projects/bind9!9296
This commit is contained in:
Michal Nowak
2024-08-22 08:06:56 +00:00
7 changed files with 9 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ variables:
TEST_PARALLEL_JOBS: 4
CONFIGURE: ./configure
CLANG_VERSION: 18
CLANG_VERSION: 19
CLANG: "clang-${CLANG_VERSION}"
SCAN_BUILD: "scan-build-${CLANG_VERSION}"
LLVM_SYMBOLIZER: "/usr/lib/llvm-${CLANG_VERSION}/bin/llvm-symbolizer"

View File

@@ -152,11 +152,11 @@
#endif /* HAVE_LMDB */
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t) - 1)
#define SIZE_MAX ((size_t)-1)
#endif /* ifndef SIZE_MAX */
#ifndef SIZE_AS_PERCENT
#define SIZE_AS_PERCENT ((size_t) - 2)
#define SIZE_AS_PERCENT ((size_t)-2)
#endif /* ifndef SIZE_AS_PERCENT */
/* RFC7828 defines timeout as 16-bit value specified in units of 100

View File

@@ -72,9 +72,9 @@ totext_opt(ARGS_TOTEXT) {
or = r;
or.length = length;
if (tctx->width == 0) { /* No splitting */
RETERR(isc_base64_totext(& or, 60, "", target));
RETERR(isc_base64_totext(&or, 60, "", target));
} else {
RETERR(isc_base64_totext(& or, tctx->width - 2,
RETERR(isc_base64_totext(&or, tctx->width - 2,
tctx->linebreak,
target));
}

View File

@@ -89,8 +89,7 @@ struct xrdata {
#endif /* if DNS_RDATASET_FIXED */
};
#define peek_uint16(buffer) \
({ ((uint16_t) * (buffer) << 8) | *((buffer) + 1); })
#define peek_uint16(buffer) ({ ((uint16_t)*(buffer) << 8) | *((buffer) + 1); })
#define get_uint16(buffer) \
({ \
uint16_t __ret = peek_uint16(buffer); \

View File

@@ -54,6 +54,6 @@ isc_thread_yield(void);
void
isc_thread_setname(isc_thread_t thread, const char *name);
#define isc_thread_self (uintptr_t) pthread_self
#define isc_thread_self (uintptr_t)pthread_self
ISC_LANG_ENDDECLS

View File

@@ -134,7 +134,7 @@ STATIC_ASSERT(ISC_NETMGR_TCP_RECVBUF_SIZE <= ISC_NETMGR_RECVBUF_SIZE,
#if defined(__linux__)
#include <syscall.h>
#define gettid() (uint64_t) syscall(SYS_gettid)
#define gettid() (uint64_t)syscall(SYS_gettid)
#elif defined(__FreeBSD__)
#include <pthread_np.h>
#define gettid() (uint64_t)(pthread_getthreadid_np())

View File

@@ -566,7 +566,7 @@ main(int argc, char *argv[]) {
void *map = NULL;
isc_mem_create(&mem);
map = fun->new (mem);
map = fun->new(mem);
size_t nitems = lines / (nthreads + 1);